Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- file = open('4.txt')
- text = file.read()
- while 'JBOSSJBOSSJ' in text:
- text = text.replace('JBOSSJBOSSJ', 'JBOSSJ JBOSSJ')
- print(text.count('BOSS') - text.count('JBOSS') + text.count('JBOSSJ') - text.count('BOSSJ'))
Advertisement
Add Comment
Please, Sign In to add comment