A

Admin • 831.35K Points
Coach

Q. What will `list(range(5))` return?

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

Explanation by: Admin
`range(5)` generates numbers from 0 up to, but not including, 5.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.