nums=[1,4,9,16,25,36,49,64,81,100]

idx=0
while idx<len(nums):
    print(nums[idx])
    idx+=1

Embed on website

To embed this program on your website, copy the following code and paste it into your website's HTML: