Skip to content
CodeKruPro

What does range produce?

QuizEasy-MediumPython onlyAsked in: TCS

Which statements are true? Pick all that apply.

  • list(range(10, 0, -3)) is [10, 7, 4, 1]
  • list(range(5, 2)) is [5, 4, 3]
  • list(range(3)) is [0, 1, 2]
  • range(1, 5) includes 5

This question is part of Pro+

Pro+ opens every question in Interview Prep and the mock interview. Every article and the first 2 questions of each topic stay free. Hands-on Selenium and API tasks follow their course lesson's own lock.

See Pro+

Already have Pro+? Sign in