python/square_numbers2.py

2 lines
64 B
Python

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