Course and Reading Material
Week 1
Reading Homework: Chapter 6: 6.1 - 6.4
Lab 1 Team Work Monday and Wed
Chapter 6 Example 1:
Chapter 6 Example 2:
Example we did in class on January 15:
MINI QUIZ 1 Friday Janury 17
Weeks 2 - 3
Reading Homework: Chapter 8: 8.1 - 8.6
Chapter 8 Lists Examples
Test 1 on Wed, Feb 12. For
more information see
Week 4
List Examples
How to use file make_list
Example
Dice Game Using List of Counters
Example - Similar to the problem on
Exam 1 and Lab 4
Lecture Activities
Activity 1
Activity 2
Activity 2 Solution
Activity 3
Activity 3 Solution
Lecture
Activities
Activity 1
Activity 1 Solution
Two Dimensional Lists -
Chapter 8.8
List initialization:
a = [[
0 for i in range(COL)] for j in range(ROW)]
The above line will create a list of ROW rows and COL columns and assign value 0 to each
element
Test 2: Friday Feb 28.
Part I - 1 problem, 25 points, to write input/output
Part II - 1 writing program question. You would need to write several functions and main. The Top-Down design will be provided.
Material 2-D Lists and 1-D Lists
Test 2 Preparation Example: Write a program that asks user to enter the number of family members with
Facebook
account, their names, and the number of hours they spend on Facebook per day during the weekdays.
The program finds the total number of hours per family member and the family member who spend the most time on
Facebook. Store hours in 2-d list. One rows stores hours for one family member. The number of rows is the number
of family members, the number of columns is 5 in our example (there are 5 weekdays). Store family names in
additional 1-d list.
Solution for the preparation problem ( we did it in class today on February 26)
Exam 2 Preparation
Lecture Examples
Program 1
Lecture Activities
Actitivity 1 - no writing program is
required
Activity 2
Activity 2 Solution
Activity 3
Activity 3 Solution
Lecture Activities
Activity 1
Activity 1
Solution
Activity 2
Activity 2
Solution
Examples - STRINGS CHAPTER 9
Example
1
Example
2
Test 2 Monday March 24