opp = eval(input('Enter opposite side here: '))
adj = eval(input('Enter adjacent side here: '))
hyp = eval(input('Enter hypotenuse here: '))
if hyp**2 == adj**2 + opp**2:
print('This is a right triangle')
else:
print('This isn\'t a right triangle')
Enter opposite side here: 3
Enter adjacent side here: 4
Enter hypotenuse here: 5
This is a right triangle
Comments
Leave a comment