CS 8: Introductory Programming with Python

Daily Schedule

Week Day Topics References Announcements & Assignments
1 5/11
  • Introduction to the course
  • Syllabus
  • Introduction to Programming and Computers
  • Introduction to Python
  • Numbers and Arithmetic
  • Variables
  • Comments
Introduction to Programming and Computers (pptx)
Notes
Lab 1
Background Survey (on CourseWeb)
5/13
  • print
  • Strings
  • Formatting numbers
  • Getting Help
Notes
Code from Class
2 5/18
  • Input
  • Introduction to Modules and Python's Library
  • Boolean Expressions
Notes
Code from Class
name.py (from class)
Lab 2
Assignment 1
5/19
  • Logical Operators
  • Order of Operations
Notes
Code from Class
Examples
3 5/25 No class or recitation
5/27
  • Quiz 1 - Intro to Python through Intro to Modules & Python Libraries
  • if statements
Notes
Code from Class
fries.py
sentence.py
Assignment 1
4 6/1
  • When to use if statements
  • while loops
Quiz 1 Solution
Notes

ISP Example
Sales Commission Example
Infinite Loop Example
Accumulator Example
Lab 3
Assignment 1
6/3
  • Nested Loops
  • for loops
  • Lists
Notes
Code from Class
Review Code
hour_minute.py
count_vowels.py
5 6/8
  • Lists and Tuples
Notes

Code from IDLE
Review
list_comprehension.py
remove_all.py
Lab 4

Assignment 2

Assignment 5
(preliminary proposal)

Midterm on Monday, June 22
Review survey on CourseWeb
6/10
  • Lists and Tuples
  • Files
Notes

Code from IDLE
Review
writing_example.py
6 6/15
  • Files
    • Locating Files on Hard drive
    • Detecting whether files exist
    • File formats
Notes

Code from IDLE
missing_file.py
not_closing.py
Relative Locations Example

writing_example2.py
reading_example2.py
Lab 5

Assignment 2

Midterm on Monday, June 22
Review survey on CourseWeb
6/17
  • File Formats
  • Midterm Review
Notes
Midterm Review Page

Code from IDLE

writing_example3.py
reading_example3.py

Comprehension Notes
7 6/22 Midterm Lab 5

Assignment 2
6/24
  • Exception Handling
Notes

Code from IDLE
Division example
Index Exception Handling
List position
Value Exception Handling
Assignment 5
8 6/29
  • Functions
Notes

Code from IDLE
Quick Quiz review code
to_upper.py
hello.py
is_even.py
Lab 6

Assignment 5
7/1
  • Functions
Notes

Midterm Program 1

IDLE code
sales_amounts_functions.py
factorial.py
9 7/6
  • Functions
  • Modules
Notes

Code from IDLE
Review Code
Factorial

Module Example
greetings.py
module_ex.py
Lab 7

Assignment 5
Complete Progress Report
Scheduling Survey

(in Surveys section)
by July 9
7/8
  • Classes
Notes
Class introduction (pptx)

Code from IDLE
SimpleClass.py
Person.py
10 7/13
  • Quiz 2: Exception Handling, Functions, and Modules
  • Classes
Notes

Code from IDLE
Person Example
Lab 8

Assignment 3

Assignment 5
Progress Report meetings this week

Instructor office hours by appointment
7/15
  • Data Aggregation
Quiz 2 solution

Review
Data Aggregation Notes

Code from IDLE
Person3.py
aggregation_ex_sol.py
11 7/20
  • Dictionaries
  • Sets
Review
Dictionary & Set Notes
Lab 9

Instructor Office Hours:
Tuesday, July 21
10am - noon

Final Exam review survey
on CourseWeb
7/22
  • Advanced Functions
Advanced Function Notes

Code from IDLE
greet_user3.py
varpos.py
varkw.py
calculate_stats.py
lambda.py
global.py
12 7/27 Notes

Code from IDLE
vals.py
input_vals.py
module_main_ex.py
rectangle.py
Recitation:
Complete lab 9
Review for final

Instructor Office Hours:
Tuesday, July 28
10am - noon

Assignment 5
due Monday

Assignment 3
due Friday
7/29 Final Exam

Anticipated schedule:

  1. Inheritance
  2. Special Topics