Advertisement
horozov86

Emoticon Finder

Mar 20th, 2023
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.14 KB | None | 0 0
  1. text = input()
  2.  
  3. for i in range(len(text)):
  4.     ch = text[i]
  5.  
  6.     if ch == ":":
  7.         symbol = text[i + 1]
  8.         print(f":{symbol}")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement