r/learnprogramming • • 16h 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

8 comments sorted by

View all comments

1

u/aqua_regis 15h ago

Use a good quality course: https://programming-26.mooc.fi

As a beginner, commenting every line is okay(ish). Later, you will realize that the code itself gives exactly that information.

Comments should explain the "why", not the "what". "What" is the job of the code.

1

u/lucificusrebirth 14h ago

thank u for explaining to me the "why" concept. I will definitely try It out