A

Admin • 833K Points
Coach

Q. What is the result of list(range(3))?

  • (A) [1, 2, 3]
  • (B) [0, 1, 2]
  • (C) [0, 1, 2, 3]
  • (D) [3, 2, 1]
  • Correct Answer - Option(B)
  • Views: 23
  • Filed under category Python
  • Hashtags:

Explanation by: Admin

range(3) produces values from 0 up to 2.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.