Updated hw1.py

Total time of work: 1.5 hours
I found that the readings and tutorials were very helpful in my understanding of the work.