What series of number is generated if we use range(1, 5, 0)?
Answers
Answered by
2
Answer:
range function is used with for loop
range(starting point, ending, increment)
Explanation:
>>> for x in range(1, 5, 0):
print(x)
1
2
3
4
Answered by
3
Answer:
1,2,3,4
Explanation:
The series generated if we use range-1,5,0
will be 1,2,3,4 as 1 is the start and the stop is 5 and as their is no use of step their by default the sequence generated will be -1,2,3,4.
Thank you...
Similar questions