Advertisement
vadim_sharaf

Untitled

Sep 23rd, 2021
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.13 KB | None | 0 0
  1. with open ('24-j4.txt') as f:
  2.     s = f.readline()
  3. s = s.replace('BOSSJ', 'J').replace('JBOSS', 'J')
  4. print(s.count('BOSS'))
  5.  
  6.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement