Skip to content

Instantly share code, notes, and snippets.



Last active Jan 12, 2018
What would you like to do?
Vowel Counter
while 1:
number_of_vowels = 0
print('Enter a name to get a vowel count. Type "done" once' + " you're finished.")
name = input()
if name == "done":
for vowel in name:
if vowel == 'a' or vowel == 'e' or vowel == 'i' or vowel == 'o' or vowel == 'u':
number_of_vowels += 1
print('Number of vowels in "' + name + '": ' + str(number_of_vowels))
print("Thank you!")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment