Week 2 assignments:

Here is a basic stack class I made this week. Below that is my answer to question 3 for the homework.

Note that calling del on a dictionary is much, much faster than calling del on a list in Python. At the values I tested it was generally around 80 times faster, and increasingly so for larger and larger test cases.