Farz0l1x

Untitled

Apr 16th, 2023
112
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('6.txt')
  2. text = file.read()
  3. while 'XXXXX' in text:
  4.     text = text.replace('XXXXX', 'XXXX XXXX')
  5. print(text.count('XXXX'))
Advertisement
Add Comment
Please, Sign In to add comment