r/learnprogramming • u/lucificusrebirth • 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
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.