Question · Python course · Module 1: Python Basics

The range Function

What numbers will range(1, 6) generate?

Answer options

  • 1, 2, 3, 4, 5, 6
  • 1, 2, 3, 4, 5
  • 0, 1, 2, 3, 4, 5
  • 0, 1, 2, 3, 4
Show the answer

Correct answer:

  • 1, 2, 3, 4, 5