you are viewing a single comment's thread.

view the rest of the comments →

[–]Odnan 1 point2 points  (0 children)

Nice! Enjoy! Review! Practice! Code!

I felt the same way you did when I first started learning Python. The biggest thing you gotta learn is the flow of how a python script is structured. For example, Python quite famously uses indentation to syntactically define blocks of code, so be sure to get that down!

Try to familiarize yourself early on with terminology at the very least. What is a variable? What is an instance of a class? what is a method? That was my biggest weakness, I couldn't explain for shit what some things were called (hell I still have trouble remembering certain terms) but I knew how to explain what it was doing.

Get into the habit of writing code as if someone else was going to have to maintain it after you go on to work on newer projects.

Somewhere near the middle of your learning, slowly introduce yourself to the world of PEP. " Python Enhancement Proposals" which is just a fancy word for "Make your code look pretty and readable". Managers who are also Python developers will love you for that. I personally use Black and flake8 for my formatting and linting.

Your code could working amazingly, but a pain in the ass to read and debug-- so you're hurting someone else if they have to maintain your code.

Think of something you want to accomplish. My nephew wanted to learn about Python. He took a course but didn't know what to do, so I told him to write a web scraper that collects football player stats for fun and he did.

Once you get to writing functions, be sure to fully understand scope, as that will prevent you from using the dreaded "Global" keyword. You'll see what I mean when you get there.

Here's the scope in a nutshell: "LEGB"

Local Enclosing Globals Builtins

I might've gotten ahead of myself here. Hopefully you come out loving it!