abstractions-in-python

Sock Drawers

In this chapter, we develop a class to model a sock drawer - a drawer where one can put in socks, and then fish them out in pairs. This will lead to a discussion of arithmetic dictionaries, which are dictionaries on which one can perform arithmetic operations.

Notebook

Video

To learn more

Possible problem sets