Advertisement
SimeonTs

SUPyF2 Text-Pr.-Ex. - 05. Emoticon Finder

Oct 27th, 2019
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.57 KB | None | 0 0
  1. """
  2. Text Processing - Exercise
  3. Check your code: https://judge.softuni.bg/Contests/Practice/Index/1740#4
  4.  
  5. SUPyF2 Text-Pr.-Ex. - 05. Emoticon Finder
  6.  
  7. Problem:
  8. Find all emoticons in the text. An emoticon always starts with ":" and is followed by a single symbol or letter.
  9. The input will be provided as a single string.
  10.  
  11. Examples:
  12. Input:
  13. There are so many emoticons nowadays :P I have many ideas :O what input to place here :)
  14. Output:
  15. :P
  16. :O
  17. :)
  18. """
  19. text = input()
  20. counter = 0
  21. for i in text:
  22.     if i == ":":
  23.         print(":" + text[counter + 1])
  24.     counter += 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement