r/learnprogramming • • 6d ago

GOOD WAY TO LEARN PYTHON?

I am currently learning the basics of python and I am trying to figure out what's the best way to learn it. What I am currently doing is that after I write some lines of code that I learned, I then use the comment # to explain what each line of code does in my own words. I am wondering if that's a good way to learn and if there are better alternatives.

0 Upvotes

12 comments sorted by

View all comments

1

u/rosario-e5 4d ago

Use each comment as a prediction: guess what the code does for one input, run it, then revise if needed. When you can explain it without notes, try a small variation.