Advertisement
bl00dt3ars

05. Emoticon Finder (Dimitrina Pironkova)

Jul 24th, 2021
219
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.21 KB | None | 0 0
  1. text = input().split(":")
  2. text.pop(0)
  3.  
  4. for element in text:
  5.     if not element == "":
  6.         # if element[0] != " ":
  7.         symbol = element[0]
  8.         print(f":{symbol}")
  9.     else:
  10.         print("::")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement