Skip to content

Instantly share code, notes, and snippets.

@KeronCyst

KeronCyst/VowelCounter.py

Last active Jan 12, 2018
Embed
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":
break
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