Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- text = input()
- for i in range(len(text)):
- if text[i] == ':':
- print(f":{text[i + 1]}")
- # цикъла е елементарен и може да се направи с comprehension.
- # [print(f":{text[i + 1]}") for i in range(len(text)) if text[i] == ':']
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement