Skip to content

Instantly share code, notes, and snippets.

@KeronCyst
Last active January 12, 2018 21:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save KeronCyst/a5e84741a1c47e76bc8636b53634347b to your computer and use it in GitHub Desktop.
Save KeronCyst/a5e84741a1c47e76bc8636b53634347b to your computer and use it in GitHub Desktop.
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