current position:Home>Two Python experiment questions

Two Python experiment questions

2022-02-02 18:43:05 CSDN Q & A


Refer to the answer 1:
for a in range(1, 31):    for b in range(1, 31):        for c in range(1, 31):            if a**2 + b**2 == c**2:                print(f'{a}**2 + {b}**2 = {c}**2')

Refer to the answer 2:

copyright notice
author[CSDN Q & A],Please bring the original link to reprint, thank you.

Random recommended