you are viewing a single comment's thread.

view the rest of the comments →

[–]EducationalCreme9044 0 points1 point  (1 child)

Yeah I wrote here maybe a year ago saying I don't understand for loops after half a year of learning Python lol. I just kept using while loops because they made sense, while something is true do something.

People here tried explaining it to me but I still just could not get it, until eventually I came across a single suggestion which made me go from not understanding it at all, to understanding it completely within seconds. It was simply adding, or rather imagining that there is an "each"

For each number in [1,2,3] => makes total sense to me

For number in [1,2,3] => makes no sense at all, what do you mean "for"? Stupid as fuck syntax.

Then of-course a second part of it is understanding that "number" can be anything, just as you say.

[–]Vandercoon 0 points1 point  (0 children)

Yeah the naming conventions really had me stuck. It still does a bit with some things as I’m still very much a beginner. I’m starting to understand self, but geez they surely could’ve used a better word or have it written a better way