Farz0l1x

Untitled

Dec 12th, 2022
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.16 KB | None | 0 0
  1. file = open("14.txt")
  2. s = file.readline()
  3. count = 0
  4. for i in range(4, len(s)):
  5.     if s[i] == s[i-4] and s[i-1] == s[i-3]:
  6.         count += 1
  7. print(count)
Advertisement
Add Comment
Please, Sign In to add comment