Farz0l1x

Untitled

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