Hi everybody, i am trying to make a while loop that will display the vowels in a sentence
for example:
VOWELS = "aeiouAEIOU"
counter = 0
phrase = raw_input("Enter a phrase. ")
THIS WILL BE PSUDOCODE FROM HERE ON OUT
while there are letters in a phrase
-------check to see if they are in VOWELS
--------if VOWELS in phrase
-------------counter += 1
print "There are", counter, "vowels in your sentence"
-I'd really appreciate the help, I am running version 2.5.3 for my class. My project is already late, but still needs to be done. Thank you in advance.
Question
Fox Donut
Hi everybody, i am trying to make a while loop that will display the vowels in a sentence
for example:
VOWELS = "aeiouAEIOU"
counter = 0
phrase = raw_input("Enter a phrase. ")
THIS WILL BE PSUDOCODE FROM HERE ON OUT
while there are letters in a phrase
-------check to see if they are in VOWELS
--------if VOWELS in phrase
-------------counter += 1
print "There are", counter, "vowels in your sentence"
-I'd really appreciate the help, I am running version 2.5.3 for my class. My project is already late, but still needs to be done. Thank you in advance.
Edited by KudosLink to comment
Share on other sites
10 answers to this question
Recommended Posts