Outline for May 25, 2007
-
Greetings and felicitations!
-
How to write a program
-
Problem: read some text, and say whether or not there are any capital letters in it
-
Pseudocode: read string, check characters
-
Python #1: use a while loop and check whether you get to the end of the line
-
Python #2: use a while loop with a sentry variable
-
Python #3: use a for loop with "in" operator and a break
Here is a PDF version of this document.