Farz0l1x

Untitled

Dec 12th, 2022
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.09 KB | None | 0 0
  1. file = open("1.txt")
  2. s = file.readline()
  3. s = s.replace('XVIII', '1')
  4. print(s.count('1'))
Advertisement
Add Comment
Please, Sign In to add comment