May-08-2017, 06:54 PM
Dear Python Users,
I am pretty new to python, please help me with the following issue. I need to subtract every 10th squared number within a range of (1000,0). For example, 1000^2 - 990^2..... I started with the following loop, but do not now how to continue:
Alberto
I am pretty new to python, please help me with the following issue. I need to subtract every 10th squared number within a range of (1000,0). For example, 1000^2 - 990^2..... I started with the following loop, but do not now how to continue:
for z in range(1000,0,-10): Answer= z[z]**z[z] - z[z-1]**z[z-1] print("Answer=" Answer)Best regards,
Alberto