Print the number series 1 4 9 using for loop in Python
for Loop - Question 4
In this question, we will see how to print the number series 1 4 9... in Python programming using for loop. To know more about for loop click on the for loop lesson.
Q4) Write a program in Python to print the number series given below using for loop.
1 4 9 16 25 36 49 64 81 100
Program
for i in range(1,11):
print(i*i,end=' ')
Output
1 4 9 16 25 36 49 64 81 100