Loading…
Generate a list of all even integers from 1 through 20 using a comprehension, then print it. Expected output: [2, 4, 6, 8, 10, 12, 14, 16, 18, 20].
Create a free account to save your progress and reveal the worked answer for this free exercise. The complete practice library is available with Practice Pass or Mastery.
Create a free account to save your progress and reveal the worked answer for this free exercise. The complete practice library is available with Practice Pass or Mastery.