| Week | Start of Week | Schedule | Assignments |
| 1 | Jan. 23 | Course Intro; basic unix; python shell vs scripting; chapter 1 including syntax, runtime and loginc errors | week 1 lab due Mon of week 2 |
| 2 | Jan. 30 | Chapters 2: values,variables, expressions, statements; Chapter 3: functions | week 2 lab |
| 3 | Feb. 6 | Chapter 4: booleans,conditionals,input, drawing with GASP | week 3 lab |
| 4 | Feb. 13 | Chapter 5, basic html | week 4 lab |
| 5 | Feb. 20 | Mon=Prez Day (no class), Chapter 6 | week 5 lab due Wed, Feb 29, Project 1 assigned |
| 6 | Feb. 27 | Quiz review, begin Chapter 7, code to print ASCII chart: while and for loop versions, ASCII chart and code Code Camp Fri 2:15-3:15 pm, 4:45-5:45 pm | week 6 lab due Wed Mar 21 |
| 7 | March 5 | finish Chapt 7, Code Camp 1, Code Camp 1 Solutions Midterm 1 review Wed, Midterm Fri | Project 1 due Wed |
| March 12 | Spring Break | ||
| 8 | March 19 | Chapter 8 | week 8 lab; Wed 3/28 turn in Quiz6 & 7: Quiz6 correct exam 1-10; Quiz7 correct exam 11-15 |
| 9 | March 26 | Chapter 9 | week 9 lab due Wed Apr 4 |
| 10 | April 2 | Chapter 10, Fri no class (Easter Holiday) | week 10 lab due Wed Apr 11, Project 2 assigned |
| 11 | April 9 | Finish Chapter 10, file reading of a maze, Begin Chapter 11: Recursion | week 11 lab due Wed Apr 25 |
| 12 | April 16 | Exceptions, Midterm 2 review, midterm Code Camp 2, Code Camp 2 Solutions |
Project 3 assigned; Project 2 due Wed |
| 13 | April 23 | Classes, Objects and Inheritance draw class example Code Camp B1, option B Assignment2, Code Camp B1 Solutions | |
| 14 | April 30 | Classes and methods, Binary Search class for complex numbers, gravitational objects Code Camp B2, option B Assignment3, Code Camp B2 Solutions | |
| 15 | May 7 | Final review, Wed is last day of class Code Camp B3, Code Camp B3 Solutions |
Project 3 Option B last part due Fri |
| 15 con't | Sat May 12 | Final exam is Sat May 12, 12:30 - 2:30 pm in our classroom |
Code to get input, convert inches to centimeters and output result:
inches = input("Enter the length in inches: ")
cent = 2.54* inches
print inches, " in equals ", cent, " cm"
Function to convert inches to centimeters:
# Returns the number of centimeters that is equal to the number of inches in variable inch
def inchesToCentimeters(inch):
cm = 2.54* inch
return cm
Main program that calls the function inchesToCentimeters:
inches = input("Enter the length in inches: ")
cent = inchesToCentimeters(inches) # this is the function call: note that if the result is not assigned to a variable, it will be discarded
print inches, " in equals ", cent, " cm"
Week 6
Note that due date is out of the ordinary: due Wed March 21.