import math wand = 200 diag = math.sqrt(wand**2+wand**2) dach = math.sqrt((wand/2)**2+(wand/2)**2) print(f"{diag:.2f}") print(f"{dach:.2f}")