Update Pythagorean Solver.py

made program more succinct.