134k views
2 votes
Write a python program to print the square of all numbers from 0 to 10.

2 Answers

2 votes

Answer:

for i in range(11):

print(i^2)

It goes through printing the square of each number with a range of 11 since 0 is also included

User Tuxedo Joe
by
4.8k points
2 votes
Here is the answer of you question
Write a python program to print the square of all numbers from 0 to 10.-example-1
User Abdelkarim EL AMEL
by
4.8k points