Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- text = input()
- y = 0
- letters = {
- 'a': 1,
- 'e': 2,
- 'i': 3,
- 'o': 4,
- 'u': 5
- }
- for x in text:
- # Така се проверява дали речника letters съдържа индекс x:
- if x in letters
- y = y + letters[x]
- print(y)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement