Advertisement
DiYane

Emoticon Finder

Sep 26th, 2023
697
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.19 KB | None | 0 0
  1. def emoticon_finder(string):
  2.     for index, char in enumerate(string):
  3.         if char == ':':
  4.             print(f'{char}{string[index + 1]}')
  5.  
  6. string = input()
  7. emoticon_finder(string)
Tags: python
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement