Farz0l1x

Untitled

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