Update assignment174.py

Finished. Bugtesting phase.