5 lines
84 B
Python

squares = []
for value in range(1, 11):
squares.append(value**2)
print(squares)