Computer Science

What is printed by the Python code?

print(list(range(3)))

  1. [0, 1, 2, 3]
  2. [1, 2, 3]
  3. [0, 1, 2]
  4. 0, 1, 2

Python List Manipulation

8 Likes

Answer

[0, 1, 2]

Answered By

3 Likes


Related Questions