DEV Community

Michael De Abreu
Michael De Abreu

Posted on

I want to learn Python, where should I start?

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.

Top comments (6)

Collapse
 
enzoftware profile image
Enzo Lizama Paredes

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 : pythonprogramming.net/

Collapse
 
rugiganasp profile image
RUGIGANA

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

Collapse
 
phillie profile image
Philly

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!

Collapse
 
courier10pt profile image
Bob van Hoove • Edited

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.

Collapse
 
codemouse92 profile image
Jason C. McDonald • Edited

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.

Collapse
 
rhymes profile image
rhymes • Edited

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 ;-)

docs.python.org/3/tutorial/index.html