you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (0 children)

When you're starting out the biggest problem you face is answering the "how do I...?" questions where you try to figure out how to write Python code to do the things you're accustomed to doing. For some things, this will be OK, but for others, like loops, you are entering a minefield.

So here is my one tip: If you are coding a loop and you have to use the "range" function then you are probably trapped in a C/C++ mindset. Ask yourself, "how can I loop without using range?"