Note: All lecture notes and examples are based on the work by numerous other instructors.
While you are here, you are encouraged to try out Python programs on this online Python site.
Week Class Weekday Date Notes Code example(s) 1 1 Mon 1/14 Course introduction: [PPT, PDF] 00_if_else.py 2 Wed 1/16 First Python program: [Workshop notes] Lecture: [PPT, PDF] workshop solution 3 Fri 1/18 Picobot: [PPTX, PDF] Picobot 2 Mon 1/21 Martin Luther King Jr. Day (no class) 4 Wed 1/23 Data types, Strings, Lists: [PPTX, PDF] [Workshop notes ] workshop solution 5 Fri 1/25 Python functions: [PPT, PDF] [Workshop notes] convertToSeconds.py workshop solution 3 6 Mon 1/28 Recursions: [PPT, PDF] [towerOfHanoi.py factorial.py other recursion examples] 7 Wed 1/30 Recursion practice 1: [PPT, PDF] [Workshop notes] [find_list_max.py extract_list.py] workshop solution 8 Fri 2/1 Recursions 2: [PPT, PDF] no_x.py, all_star.py, count_vowels.py 4 9 Mon 2/4 Turtle graphics: [PPT, PDF] [Turtle graphics program examples] 10 Wed 2/6 List comprehension: [PPT, PDF] [list comprehension examples worksheet Solution] 11 Fri 2/8 Map, reduce, filter: [PPT, PDF] [Map, Reduce, Filter practice] solutions 5 12 Mon 2/11 Random numbers : [PPT, PDF] flipCoin.py count_doubles.py chr_ord_rand.py 13 Wed 2/13 Binary numbers : [PPT, PDF] [Estimate Pi exercise] Solution: estimate_pi.py 14 Fri 2/15 Logical operations and gates [PPT PDF (Part 1)] Sample PGM images 6 15 Mon 2/18 Logical operations and gates [PPT PDF (Part 2)] 16 Wed 2/20 Recursion and list comprehension workshop Solutions 17 Fri 2/22 Exam 1 7 18 Mon 2/25 Logical gates, adders [PPT PDF] 19 Wed 2/27 Introduciton to Hmmm Assembly Language [PPT PDF] demo_jgtzn.hmmm 20 Fri 3/1 Hmmm functions 1 [PPT PDF] Calling simple function 8 21 Mon 3/4 Hmmm functions 2 [PPT PDF] jump1.hmmm jump2.hmmm 22 Wed 3/6 For loops in Python [PPT PDF] print_even.hmmm print_even.py 23 Fri 3/8 While loops in Python [PPT PDF] Code examples and exercises Mon 3/11 Spring break Wed 3/13 Spring break Fri 3/15 Spring break 9 24 Mon 3/18 2D list/array, nested loops [PPT PDF] mystery.py create_arrays.py 25 Wed 3/20 More loop examples, functions, and parameters [PPT PDF] array_max.py matrix_tophalf.py param_passing.py 26 Fri 3/22 Practices on 2D arrays and lists, matrix Program comprehension, Program exercises, Solution 10 27 Mon 3/24 Conway's Game of Life [PPT PDF] list_remote_pop.py 28 Wed 3/27 Introduction to OOP [PPT PDF] date.py bird.py Rational.py 29 Fri 3/29 Introduction to OOP [PPT PDF] date.py bird.py Rational.py OOP worksheet solution 11 30 Mon 4/1 OOP II [PPT PDF] book.py repr-str.py 31 Wed 4/3 Review actvitiy and suggested solution 32 Fri 4/5 Exam 2 12 33 Mon 4/8 Files and dictionaries [PPT PDF] file_ops.py lincoln.txt wc.py dict_wc.py 34 Wed 4/10 Project preparation 1 project-prep.py, top-songs-100-last.csv, sorting-multiple.py 35 Fri 4/12 13 36 Mon 4/15 Search and sorting (1) [PPT PDF] Code examples 37 Wed 4/17 Search and sorting (2) [PPT PDF] Code examples 38 Fri 4/19 Project discussion 14 39 Mon 4/22 Complexity and big-O [PPT PDF] bigO.py plot_multiple.py polynomial.csv recursion.csv 40 Wed 4/24 P vs NP [PPT PDF] 41 Fri 4/26 15 42 Mon 4/29