Some Lecture Notes
More Notes are posted at piazza.com
- L1-how to solve a problem, gcd(m,n)
- L1-how to solve a problem, gcd(m,n)-part2 recursion
- gcd1.py - iteration
- gcd2.py - recursion
- gcd3.py - "grade school method"
- gcd(m,n) - walk-thru and stack trace Doc strings added to python code.
- gcd1_withdocs.py - iteration
- gcd2_withdocs.py - recursion
- ascii-file Tarfiles with python: should work on Windows, Mac and Linux
- create_tar_gz
- extract_tar_gz argv[] and write() example
- tryargv.py file I/O
- first_readfile_example.tar.gz
- second_fileIO_example.tar.gz
- heading.py Demonstrates reading 2-dim data into a 1-dim list then convert to 2-dim list.
- array2d.tar.gz Demonstrates 2-dim array iteration: row-by-row and col-by-col
- arraydemo.tar.gz examples 1 thru 5 each test one array function
- tryarrays.tar.gz Use dictionaries to prompt for data:
- dictionary2d.py
- poly1.py
- dec2bin.py
- bubsort1.py
- bubsort2.py
- bubsort3.py
- bubsort4.py
- betterbub.py
- betterbub1.py
- isort.py
- isort1.py
- qsort.py Lomuto's quicksort
- p00.py
- p0.py
- p1.py
- p2.py
- p3.py
- p4.py
example 6 combines all examples into one
Simple introduction to exception handling.