Tom_Jung

Untitled

Jan 30th, 2019
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. vowels = "aeiou"
  2. count = 0
  3.  
  4. counter = [ ]*5
  5.  
  6. words = input("Provide a sentence or more: ")
  7.  
  8. for letter in words:
  9. if letter in vowels:
  10. counter.append(letter)
  11. count = count + 1
  12. print("vowel")
  13.  
  14. print("Number of vowels :", count)
  15. print("List of vowels: ", counter)
Advertisement
Add Comment
Please, Sign In to add comment