Coding task · Python course · Module 2: Data Structures

List Comprehension

Create a list of squared numbers

Task

Create a list squares with the squares of the numbers from 1 to 5 using a list comprehension