Farz0l1x

Untitled

Dec 12th, 2022
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.17 KB | None | 0 0
  1. s = file.readline()
  2. count = 0
  3. for i in range(9, len(s)):
  4.     if s[i - 9] == 'A' and (s[i] == 'F' or s[i-1] == 'F' or s[i-2] == 'F'):
  5.         count += 1
  6. print(count)
Advertisement
Add Comment
Please, Sign In to add comment