QUESTION IMAGE
Question
multiple choice
you used range in definite loops earlier in the course. the output of the range function is a sequence, which is a list of integers.
range(3) creates which sequence of numbers?
1, 2, 3, 4
0, 1, 2, 3
0, 1, 2
1, 2, 3
Brief Explanations
In Python, the range(n) function generates a sequence of integers starting from 0 and going up to but not including n. So for range(3), it starts at 0 and goes up to 2.
Snap & solve any problem in the app
Get step-by-step solutions on Sovi AI
Photo-based solutions with guided steps
Explore more problems and detailed explanations
[0, 1, 2]