Update hw6.py

I'm sorry, but I have absolutely no idea how to complete either of the last two problems.