What a range() function does? Give an example
Answers
Answered by
0
Answer:
Explanation: One of the most common uses of the range() 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, for example, only every other value. In this example, the range() function is generating a sequence from 0 to 4
Answered by
0
Answer:
range() function is used to iterate over a series of values in a for loop.
Similar questions
English,
9 days ago
Social Sciences,
9 days ago
Math,
18 days ago
Math,
18 days ago
Environmental Sciences,
9 months ago
Science,
9 months ago