This homework is a problem set. Please see hw2.pdf for further instructions.
To submit the homework, you will upload your solutions as a PDF (hw2.pdf) and accompanying code (hw2.py plus any corresponding helper files) to Gradescope. You are encouraged (but not required) to write your solutions in LaTeX; you may find it convenient to edit hw2.tex, if you do so please remove or comment out the problem statements and include only your solutions.