Help to start programming with Python

Hello Fedora community.

I’m writing to you for personal and professional reasons. I’d like to start programming on python, but I don’t know anything about programming and I’ve just installed Fedora 42. I’d like to know if you have any tips and tricks for getting started. I’d like to hear your suggestions for literature or online courses.

Thank you for reading this and I look forward to hearing from you.

I started out with learning Python by taken the classes at https://www.freecodecamp.org/

Also look at https://www.python.org/ for reference.

2 Likes

The good news is that there is a lot of online material about Python.

The bad news is that… there is a lot of online material about Python, and as a beginner it can be difficult to discriminate and identify the good quality stuff.

I find that realpython.com generally has good, well-explained tutorials, and it has a specific “Python Basics” course: Python Basics: Introduction to Python (Learning Path) – Real Python

As @wrnash1 says, looking at the official docs is also very useful for reference.

3 Likes

And here a Fedoraproject link:

One more Link to Fedoraproject:

3 Likes

I’m currently close to completing Harvard’s CS50 - Introduction to Programming with Python course, and can happily recommend it. It’s free, but you can also pay to get a certificate of completion, which is nice to have on your resumé.

Now while the course is decent (in my personal opinion) , it’s not for everyone - they expect you to have a certain amount of technical computer knowledge. You don’t need prior programming knowledge per sé, but having that knowledge definitely helps, because sometimes they don’t go in-depth on certain topics (or may lack some implementation examples), so you may need to dig deeper on your own. Thankfully they provide lots of resources for that, like they have a Discord chat (a virtual classroom basically) where you can ask questions and discuss stuff, which is nice.

4 Likes

At work some new mission-critical tools were written in Python2. We used “Learn Python the Hard Way”. Now there is: Learn Python3 the Hard Way.

Historical note: Years ago the main system at the institute where I worked had a CDC mainframe where Python was used for system tools as well as end-user programs. I was asked to investigate why a Python program developed on the CDC gave different (wrong) results on Windows. Microsoft was using a shoddy numerical library with some functions that gave inaccurate results. I reported this to Microsoft and got a “we can’t change that” response.

3 Likes

:zany_face: but we can change! Avoid ms and move over to Linux :grin:

3 Likes

Fedora is a great place to learn python on.

The python community is very helpful to people learning python, many of the people there teach python.

They hang out at https://discuss.python.org/

1 Like

At first decide what you want to do with programing assuming have a basic programming knowledge.
First you need a good really good IDE text editor… Don’t go with anything like vim or vi or emacs.
Try with something that look beautiful and easy to use for besic i recommend do with vscodium or zed.
If you want to make gnome app go with workbench.

Why?

If you just want to be a programmer to earn a lot of money, you won’t learn it anyways. At least all my friends who asked me to teach them Python didn’t even want to open their laptop. They wanted to chat about how to start programming, but they didn’t want to program - it was too boring for them.

So, decide what you need Python for first.

Nowadays I would learn it to be able to read the code that AI produces. But AI (maybe even the same LLM) will gladly explain everything to you. What a time to be alive!

Then do it :stuck_out_tongue:

If you’re learning for fun, likely any general Python guide will do to get started. If you have an objective, looking at similar projects can give you a place to get started.

What one?


I like the idea of learning a programming language, but not just any language. I might be able to be paid enough to get some motivation to learn enough to get a job done with Python at employer request, but I’m not a fan of Python.

If you were motivated, I feel finding resources for Python should be easy. If someone else is telling you to learn it for something, they should provide paid resources and financial motivation :stuck_out_tongue:

The software carpenteries have a few lesson plans worth looking at too:

2 Likes

There is also an MIT course that focuses on small Python projects and general programming concepts.

You can start learning technical skills in different ways depending on your personal preferences. I think one of the most important things is the cause for doing it. The following quote is from Lex Fridman’s podcast with Guido van Rossum, the creator of the Python programming language.

Do you have advice for a programming beginner on how to learn Python the right way?

Find something you actually want to do with it. If you say I want to learn skill X, that’s not enough motivation. You need to pick something, and it can be a crazy problem you want to solve, it can be completely unrealistic, but something that that challenges you in into actually learning coding in in some language.

2 Likes

Say yes into “Programming” and then “Python” interested.