SciMeth 204 – Introduction to
Object-Oriented Computer Programming
Homework Solutions
Week 1 - Intro to Python, Functions
Assignment 1.1
Assignment 1.2
Week 2 - Conditional Expressions, Recursive Functions
Assignment 2.1
Assignment 2.2
Week 3 - Iteration, Strings, File I/O
Assignment 3.1
Assignment 3.2
Week 4 - Data Structures: List, Dictionaries, Tuples, and Sets
Assignment 4.1
Assignment 4.2
(
words.txt
)
Week 5 - More About Files, Intro to Modules
Assignment 5.1
Assignment 5.2
Week 6 - Exceptions, Modules, Intro to Object-Oriented Programming
Assignment 6.1
Assignment 6.2
Assignment 6.1a
Assignment 6.2a
Week 7 - OOP: Classes and Methods
Assignment 7.1
Assignment 7.2
Assignment 7.1a
Assignment 7.2a
Week 8 - OOP: Inheritance
Assignment 8.1
(
PokerHand.py
,
Card.py
)
Week 9 - Tkinter
Assignment 9.1
Assignment 9.1 (Python 2)
Challenge 1 - Watermarked Bacteria
Challenge 1 single-file solution
Challenge 1 modular solution
Challenge 2 - Degrees of Separation
Challenge 2 solution