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