4 ms·
A list of lists is two deep, while not preferable two nested loops is probably going to be the solution but if I can come up with another, I would rather use th
by hk1337 4y ago
A list of lists is two deep, while not preferable two nested loops is probably going to be the solution but if I can come up with another, I would rather use that. Like, perhaps a function to process the row instead of two loops in a single function.
- feet 4y agoIf you have a function with a loop to iterate the inner list and place that function within another loop iterating the outer list, isn't that the same thing? What would you have the inner function do?