Question · Python course · Module 2: Data Structures

List Comprehension

What does [x*2 for x in range(3)] return?

Answer options

  • [0, 2, 4]
  • [2, 4, 6]
  • [1, 2, 3]
  • [0, 1, 2]
Show the answer

Correct answer:

  • [0, 2, 4]