Python track

Exercise 8 of 8

List Comprehensions

advanced +40 XP
  1. 1The starter has the numbers 1 through 6.
  2. 2Build a new list of the squares of only the even numbers, using a list comprehension.
  3. 3Print the new list; it should be [4, 16, 36].
0/8
List Comprehensions, guided practice on Teki-SL