Farz0l1x

Untitled

Apr 3rd, 2023
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. file = open('13.txt')
  2. text = file.read()
  3. count = 0
  4. for i in range(len(text) - 7):
  5. if text[i] == "A" and ( text[i + 6] == "F" or text[i + 7] == "F" or text[i + 8] == "F" or text[i + 9] == "F" ):
  6. count += 1
  7. print(count)
Advertisement
Add Comment
Please, Sign In to add comment