Why not to use nested for loops 3 times?
You never want to use nested loops if you can avoid it. Each
additional level of loop you add increases the work done by your
program exponentially. There are certain cases where this is
unavoidable, of course. For example, iterating over objects in 2D
or 3D space can require many levels of nested loops.