Skip to content

I want to learn Python, where should I start?

github logo 惻1 min read  

I made a commitment this year to learn python, and so far I know nothing. I would like to at least know the basics. I don't want to master python, I don't even master JS/TS and I have been with them for a long time now. But just for fun.

I want to learn python because is far from my comfort zone, for what I've read.

Thanks! :D.

twitter logo DISCUSS (6)
markdown guide

The best way to start with a new language is to know his syntax, and then decide which is the way that you want to follow, specially if is python. With python you can do everything like desktop,web,arduino,mobile,ML,AI and more. My road map for this language is first , obviously, the basics of syntax then some of data structures and algorithms and nowadays some of back-end with Flask. So good luck with your trip with this amazing language , do what you love and enjoy with that.
My best resource for learning is :


this the best resource one can start from. thank for sharing this. him and LPTHW


Yeah, Python is awesome. Good choice! šŸ™Œ šŸ˜„

While there are different learning strategies, I totally agree with what Enzo said earlier: decide what you want to do do with Python and then start with learning the basics (Pluralsights Python tracks are pretty cool & freeCodeCamp too got some well documented guides for getting started with python) and getting used to the common terms.

Also, for me it always works best to jump into practical work / coding as soon as possible when learning a new language: researching projects on GitHub, tearing existing code apart and build own, little applications.

Happy (Python) Coding!


In addition to the tutorials that are mentioned (which may give you this same advice):

Once you've learned some basics the CLI is a great environment to experiment with the language. There a variety of ways to inspect objects, see for example this Stack Overflow post.

Here's an example:

> python
Python 3.5.2 (v3.5.2:4def2a2901a5, Jun 25 2016, 22:18:55) [MSC v.1900 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> x = [0, 1, 2]
>>> dir(x)
['__add__', '__class__', '__contains__', '__delattr__', '__delitem__', '__dir__', '__doc__', '__eq__', '__format__', '__ge__', '__getattribute__', '__getitem__', '__gt__', '__hash__', '__iadd__', '__imul__', '__init__', '__iter__', '__le__', '__len__', '__lt__', '__mul__', '__ne__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__reversed__', '__rmul__', '__setattr__', '__setitem__', '__sizeof__', '__str__', '__subclasshook__', 'append', 'clear', 'copy', 'count', 'extend', 'index', 'insert', 'pop', 'remove', 'reverse', 'sort']

The functions that are not surrounded by __ tell you about the 'public' methods.
The ones that are indicate capabilities.

I also find the CLI very helpful when I want to write a script quickly and just verify some assumptions about the syntax.


I would second the suggestion to use the official Python tutorial. It's easily the best resource out there.

There is extensive debate as to the accuracy and validity of many courses, paid or free. Some are great, some will mess you up forever. YMMV.

Meanwhile, the second thing you should do is register yourself with Freenode IRC and sign onto that network. Join #python and lurk there whenever you can. They're great about answering questions and providing valuable insight. (Install Hexchat or another IRC client on your machine for best results.)

In regards to IRC culture and making the most of your time there, do take a look at IRC Netiquette and You.


Hey Michael,

I know it's pretty banal suggesting this but the Python tutorial is very good and with this you're going to learn the basics of Python before the year ends ;-)

Classic DEV Post from Feb 25

Have you taken the 2020 Stack Overflow survey?

For some reason, this survey didn't hit my radar until just now. I'm usually on top of it! Looking fo...

Michael De Abreu profile image
Iā€™m a developer that do web applications by day, and games by night. I work with Typescript every day, using frameworks like Angular and Nest. Venezolano in the wild.

DEV is a next-gen coding forum.

And it's free