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

0

u/VanCliefMedia 3d ago

I'll need to make another video on this, but I used to teach Python to postgraduates as well as K-12. Your biggest bet is to find a really good Python notebook, run it in Jupyter Notebooks, and walk through the examples.

There's a lot of notebooks out there that people can walk through with you in the actual notebook, so they describe what the next function is, why it's there, and if you compare that with some sort of audio process, as in someone actually walking through the notebook with a video, it's even better.

You can even ask AI to build out a notebook for you to run locally if you don't want to download all the hubbub, but I highly recommend getting used to installing environments like Anaconda or Jupyter Notebooks as it gets you a good idea of what you need and why you need it.

Also, another good thing is start studying things outside of Python that are programming-wise. A great book that I always recommend people is The Psychology of Computer Programming by Gerald Weinberg. It's a book from the 70s, but it's so amazing when it comes to learning any programming language.