Farz0l1x

Untitled

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