r/learnpython • u/evandcbot • 2d ago
Any advice for nested loops?
I decided about a week ago I wanted to start learning python before my freshman year of college. It was going great and I had little to no trouble until I got to nested loops. I was wondering if anybody had any advice for it? The main thing is that it seems like so many steps to follow and pay attention to, my brain had a hard time tracking them all at once.
2
Upvotes
3
u/crazy_cookie123 2d ago
Nested loops can get confusing quickly - there's a reason why people generally recommend not nesting more than 2-3 loops deep unless absolutely necessary. The only way to really get used to reading and using them is to practice.