Solution Review: List of Squares
This lesson will give a detailed review of how to print the list of squares using list comprehension.
We'll cover the following...
Solution: List Comprehension
Using list comprehension, the solution is reduced to a single, straight forward line of code. You simply use a comprehension that iterates over a range of 1-11 and squares each number.
Access this course and 1400+ top-rated courses and projects.