Advertisement
aneliabogeva

Сумиране на гласните букви

May 20th, 2019
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. word = input()
  2.  
  3. result = 0
  4.  
  5. for letter in word:
  6. if letter == 'a':
  7. result += 1
  8. elif letter == 'e':
  9. result += 2
  10. elif letter == 'i':
  11. result += 3
  12. elif letter == 'o':
  13. result += 4
  14. elif letter == 'u':
  15. result += 5
  16.  
  17.  
  18. print(result)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement