Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- text = input()
- while ":" in text:
- index = text.find(":")
- print(text[index:index+2])
- text = text.replace(":", "", 1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement