Beginner here with coding problem

I now have a better understanding of how nested for loops work.

No you don't. All 4 of your outer for loops iterates exactly once. They are, therefore, useless, and you might as well save processing time by getting rid of them.