Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- text = input().lower()
- sum = 0
- vowels = ["a", "e", "i", "o", "u"]
- value = [1, 2, 3, 4, 5]
- for char in text:
- if char in vowels:
- index = vowels.index(char)
- sum += value[index]
- print(sum)
Advertisement
Add Comment
Please, Sign In to add comment