Which function is used with for loop in Python to generate a sequence of numbers in the form of a list.
Answers
Answered by
1
Answer:
Explanation:
range() function
We can use the range() function in for loops to iterate through a sequence of numbers. It can be combined with the len() function to iterate through a sequence using indexing. Here is an example.
Similar questions