<reponame>EduardV777/Softuni-Python-Exercises<filename>Python/Fundamentals/Text Processing(lab-exercises)/Exercises/Emoticon Finder.py
text=input()
emoticons=[]
ind=0
while True:
    ind=text.find(":",ind)
    if ind==-1:
        break
    else:
        emoticons.append(text[ind]+text[ind+1])
        ind+=1
print("\n".join(emoticons))

Processing(lab-exercises)/Exercises/Emoticon Finder.py
text=input()
emoticons=[]
ind=0
while True:
    ind=text.find(":",ind)
    if ind==-1:
        break
    else:
        emoticons.append(text[ind]+text[ind+1])
        ind+=1
print("\n".join(emoticons))