More to Python

From CompSciWiki
Revision as of 12:28, 3 April 2012 by YulinT (Talk | contribs)

Jump to: navigation, search

COMP 1010 Home > Back to Extra Labs

Introduction

More to Python

String Method

Your task is to ...

First, we need three variables:

  1. input - hold the user's input
  2. vowelCount - keep track of vowels
  3. 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

Create an Array