Farz0l1x

Untitled

Dec 12th, 2022
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.21 KB | None | 0 0
  1. file = open("10.txt")
  2. s = file.readlines()
  3. count = 0
  4. for i in s:
  5.     for j in range(len(i)):
  6.         a = i.count('A')
  7.         b = i.count('B')
  8.         if (b / a) * 100 >= 105:
  9.             count += 1
  10. print(count)
Advertisement
Add Comment
Please, Sign In to add comment