Create LPTHWex42.py

Exercise 42 from LearnPythonTheHardWay.org