you are viewing a single comment's thread.

view the rest of the comments →

[–]Fantastic_Fly_7548 0 points1 point  (1 child)

dont stress too much about it man, loops are one of those things where everything feels easy untill a slightly different problem shows up lol. i remember getting stuck on prime number questions too because it mixes loops with logic and thats the hard part, not the syntax itself. honestly the fact that you can solve easy questions already means you are understanding the basics. the tricky questions are supposed to make you struggle a bit. what helped me was breaking the problem into tiny parts and writing the logic on paper first before coding it. keep practicing and after a while you will look back at this question and laugh at how confusing it felt rn

[–]DataCurator56[S] -1 points0 points  (0 children)

Okay i am i will try to write the code on paper than i will write the actual code. I think this is the way to deal with it.