Last active
January 12, 2018 21:58
-
-
Save KeronCyst/a5e84741a1c47e76bc8636b53634347b to your computer and use it in GitHub Desktop.
Vowel Counter
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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