Outline for May 18, 2007
-
Greetings and felicitations!
-
Variables
-
What is a variable
-
How number = number / 2 works
-
How a sequence of number = number / 2 works
-
Comparison: if statement
-
Function: more comparison
-
Strings
-
Comparing them
-
Transforming them: upper, lower, swapping case, replacing letters
-
Conversions
-
str, int, float
-
Errors
-
Conversions
-
str, int, float
-
Errors
-
Example program: rolling a 20-sided die repeatedly
Here is a PDF version of this document.