Advertisement
Easy_Flex

Untitled

Feb 21st, 2020
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.21 KB | None | 0 0
  1. def vowel_count(words):
  2.     vowels = ["a", "e", "i", "o", "u"]
  3.     total = 0
  4.     for v in words:
  5.         if v in vowels:
  6.             total = total + 1
  7.     print(total)
  8.  
  9.  
  10. vowel_count(input("input a word: "))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement