Pythagoras теорема решатель Python

import math
a = int(input("a = "))
b = int(input("b = "))
c = str(math.sqrt((a * a) + (b * b)))
if ".0" in c:
  c = int(float(c))
else:
  c = float(c)
print("c = " + str(c))
hateschoollovecoding