Aug-09-2022, 07:03 PM
As far as I can tell I turned your description into code.
def a_function(the_range, many_times): for _ in range(many_times): for x in iter(the_range): print(x) a_function(range(3), 3)
Output:0
1
2
0
1
2
0
1
2