Problem in pyhagoras triplet

Out of the five test cases, my code is working correctly only with three test cases.
Can you please identify what is wrong with the code. LINK:

I have edited your code, plz refer to it