CS106 Class Notes
Summer 2026

Michael Eckmann
Skidmore College

Thursday July 30, 2026
Code I wrote to address your questions
Fraction.py
readandwrite.py
readwrite2.py
shell.txt
Wednesday July 29, 2026
Implementing an inheritance hierarchy
petcode.py
pettester.py
Tuesday July 28, 2026
adding instance variables, string format method, Is-a and Has-a relationships, Inheritance
outputformat.py
shell.txt
Monday July 27, 2026
More Object Oriented programming and classes
rectangle.py
testrectangles.py
testrectangle2.py
Monday July 27, 2026
continued ...
playing_cards.py
highcard.py
testpoker.py
testfromimport.py
Friday July 24, 2026
in class exercises
address.py
reformat.py
sorting.py
recursion1.py
similartoq6.py
Thursday July 23, 2026
Exam 2 during first half, implement blackjack with Card and Deck classes second half, any remaining time can work on assignment or labs
playing_cards.py (with get_value() in Card)
blackjack.py (uses Deck & Card classes)
Wednesday July 22, 2026
more Object-oriented programming
playing_cards.py (now with cut method and private instance variables)
highcard.py
Tuesday July 21, 2026
Classes and Object-oriented programming
playing_cards.py (contains Card and Deck classes)
highcard.py
Monday July 20, 2026
finish blackjack program, list comprehensions
blackjack.py
testlistcomp.py
filetesting.py
data.txt
Friday July 17, 2026
File Input and Output, String splitting with split in str class and re.split
Main lecture video
Additional video on SelectionSort finding the min each pass
Friday July 17, 2026
continued ...
testfiles.py
homeruns.txt
projectedhrs.py
Friday July 17, 2026
continued ...
mobydick-chap1.txt
wordprog.py
sorting.py (my solution to problem 1 lab07a)
Thursday July 16, 2026
Math module, Dictionaries, Various odds and ends
testoptparms.py
testtryexcept.py
testelse.py
testcontinue.py
blackjack.py
Wednesday July 15, 2026
recursion
recursion1.py
recursion2.py
Tuesday July 14, 2026
review searching, start sorting
loopinaloop.py
sorting.py
Monday July 13, 2026
In-class Exam 1 in first half of class, Lab 6 in second half
Friday July 10, 2026
more programmer-defined functions, searching (linear and binary)
lottery.py
containscode.py
binsearch.py
Thursday July 09, 2026
more programmer-defined functions
localtest.py
testcons.py
testpython.py
div3.py
Wednesday July 08, 2026
programmer-defined functions
typetest.py
testpairs.py
functions.py
Tuesday July 07, 2026
more about lists, for loops, range
testfor1.py
wordsloop.py
numstats3.py
Tuesday July 07, 2026
continued ...
shellstuff20260707.txt
prodofodds.py
product2.py
countvals.py
Monday July 06, 2026
int/float, str methods, break, lists
ascii table
shellstuff.txt
randcharacter.py
randchoice.py
Thursday July 02, 2026
Logical operators on bools, function terminology, random numbers, while loops
nestedif.py
looptesting.py
guessgame1.py
guessgame2.py
Wednesday July 01, 2026
recap from yesterday, other operators, if/elif/else statements, more
recap1.py
iftest1.py
iftest2.py
lettergrade.py
projectedhrs.py
Tuesday June 30, 2026
Introduction, getting started with python, printing, variables, values, types, input
helloworld.py
prob1a1b2a2b.py
hello2.py