what a range () function dose? give an exp
Answers
Answered by
6
Answer
One of the most common uses of therange() function is for iterating over a series of values in a for loop. This is particularly useful if you want to access each of the values in a list or array, or, forexample, only every other value. In thisexample, the range() function is generating a sequence from 0 to 4 .
Similar questions
Biology,
2 months ago
Hindi,
2 months ago
Computer Science,
5 months ago
Geography,
5 months ago
Chemistry,
11 months ago