Nested for loops
Collin Mitchell ``` num = 0
for x in range(1, 101): for y in range(1, 101): x1 = x ** 2.0 y1 = y ** 2.0 z = (x1 + y1) ** 0.5 if round(z) == z: # check if z has a decimal print(f"({x})^2 + ({y})^2 = ({int(z)})^2") num += 1
print(f"Number of combinations: {num}") ```