...

/

Solution Review: Even Squares Not Divisible By Three

Solution Review: Even Squares Not Divisible By Three

This lesson gives a detailed review of how to make a list of even squares using a list comprehension that aren't divisible by three.

Solution Review: List Comprehension With Predicate

Use a list comprehension that iterates over a range of 0-21, increments the number in the range by 2 and squares each remaining number. Also, use a predicate clause to check if the squared number is not divisible by 3, then put the number in the list.

Access this course and 1400+ top-rated courses and projects.