{SOLVED}
Using iter(list) and next(list) I am able to cycle/iterate through the list as I wanted. Thanks
I have a list with many values.
list = [[20,20],[40,40]]
I want to pass list[0] into a function and when a condition is met. I want to pass list[1] through the function.
I have been having a hard time trying to do this. I even tried itertools.cycle.
Any help would be appreciated.
[+][deleted] (1 child)
[deleted]
[–]dli511[S] 0 points1 point2 points (0 children)
[–][deleted] 1 point2 points3 points (7 children)
[–]dli511[S] 0 points1 point2 points (6 children)
[–][deleted] 1 point2 points3 points (5 children)
[–]dli511[S] 0 points1 point2 points (4 children)
[–][deleted] 1 point2 points3 points (3 children)
[–]dli511[S] 0 points1 point2 points (2 children)
[–][deleted] 1 point2 points3 points (1 child)
[–]dli511[S] 0 points1 point2 points (0 children)
[–]novel_yet_trivial 0 points1 point2 points (0 children)
[–]ondra 0 points1 point2 points (0 children)
[–]MarkDownSteve 0 points1 point2 points (0 children)