Farz0l1x

Untitled

Apr 16th, 2023
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.13 KB | None | 0 0
  1. file = open('5.txt')
  2. text = file.read()
  3. while 'XIXIX' in text:
  4.     text = text.replace('XIXIX', 'XIX XIX')
  5. print(text.count('XIX'))
Advertisement
Add Comment
Please, Sign In to add comment