Farz0l1x

Untitled

Dec 12th, 2022
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.14 KB | None | 0 0
  1. file = open("12.txt")
  2. s = file.readlines()
  3. count = 0
  4. for i in s:
  5.     if i.count('AOA') > i.count('OAO'):
  6.         count += 1
  7. print(count)
Advertisement
Add Comment
Please, Sign In to add comment