Robotics & Artificial Intelligence
Write a Python program to find the square of all elements between 1 to 20.
Python Control Flow
1 Like
Answer
for i in range(1, 21):
print(i * i)Output
1
4
9
16
25
36
49
64
81
100
121
144
169
196
225
256
289
324
361
400
Answered By
3 Likes