More to Python
From CompSciWiki
COMP 1010 Home > Back to Extra Labs
IntroductionMore to Python |
---|
String Method
Your task is to ...
First, we need three variables:
- input - hold the user's input
- vowelCount - keep track of vowels
- done - control the while loop
Second, we need to get the user's input using raw_input(prompt)
#get the user's input input = raw_input("Enter a sentence:")
Then we'll check the vowelCount
Error: Unfilled Code parameter