Which of the following sequences would be generated by the given line of code? range (5, 0, -2)
Answers
Answered by
1
Step-by-step explanation:
here is your ans of the qus
Attachments:
Answered by
0
Answer:
iii. 5 3 1
Step-by-step explanation:
- range(start, stop, step)
- range() takes mainly three arguments having the same use in both definitions:
- start - integer starting from which the sequence of integers is to be returned
- stop - integer before which the sequence of integers is to be returned.
- The range of integers ends at stop - 1.
- step (Optional) - integer value which determines the increment between each integer in the sequence
Similar questions