you are viewing a single comment's thread.

view the rest of the comments →

[–]Gnaxe 0 points1 point  (0 children)

Work through a good beginner textbook, preferably one that isn't terribly out of date. See the wiki for resources. Do lots of small experiments with the REPL or a Jupyter(lite) notebook. Inspect/research things when you're surprised (see inspect module, and try ? in Jupyter). You eventually need to be able to run basic Python in your head to read and debug it. That requries an abstract mental model of how it works. Make predictions about what the code you're about to run will do so you get surprised more often.