Объяснение:
squares = [i ** 2 for i in range(1, 12)]
print(squares)
или же:
squares = []
for i in range(1, 12):
squares.append(i ** 2)
A = [_ ** 2 for _ in range(1,12)]
print(A)
Объяснение:
squares = [i ** 2 for i in range(1, 12)]
print(squares)
или же:
squares = []
for i in range(1, 12):
squares.append(i ** 2)
print(squares)
A = [_ ** 2 for _ in range(1,12)]
print(A)