← Back to the lesson: List Comprehensions
Squares List
The exercise
Create a list of squares for numbers 1 to 5.
Result: [1, 4, 9, 16, 25]
Print the list.
Starter code
# Create list of squares / Создайте список квадратов
squares =
# Print / Выведите
Write the code in the browser and run it — no installation needed.