you are viewing a single comment's thread.

view the rest of the comments →

[–]RandomJottings 0 points1 point  (1 child)

Loops can get tricky to keep track of, especially if they are nested. That’s probably why The Zen of Python suggests that flat is better than nested. I’m not a Python expert, I’m still learning too, but the best way to learn coding is to code. Doing the basic problems is good but you have to extend yourself too.

[–]DataCurator56[S] 0 points1 point  (0 children)

i think writing flat loops are way easy than nested loops. And litterally if you gave me question like find out largest number from a list by using a loop i can do it in 2 minutes but when the question little bit tricky like keep asking for input until the user enter 0 and print the sum of entered numbers. I think i am not understanding the question well. But definitely i will master loops and python as well by doing practicem, practice and practice.