Farz0l1x

Untitled

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