This problem has been getting at me for a while now. Is there an easier way to write nested for loops in python? For example if my code went something like this
My personal argument would be that you're likely doing something wrong if you have 6 nested loops...
That said, functional decomposition is what you're looking for. Refactor so some of the loops happen in seperate function calls, then call those functions.