Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- file = open("11.txt")
- s = file.readlines()
- count = 0
- for i in s:
- for j in range(3, len(i)):
- if i[j - 3] == 'K' and i[j - 2] in "QWERTYUIOPASDFGHJKLZXCVBNM" and i[j - 1] == 'G' and i[j] == 'E':
- count += 1
- break
- print(count)
Advertisement
Add Comment
Please, Sign In to add comment