Sichanov

ss

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