1
2
3
4
5
6
7
8
9
10
11
12
13
#!/usr/bin/python3
# Accept a positive integer n.
# Print the first n perfect squares starting with 1(eg. 1, 4, 9, 25, 49, 100 .. etc.)
# Each number should be printed on one line
n = int(input())
for i in range(1,n+1):
# Perfect square is i * i or i^2
print(i**2)
# print(i*i)
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX