How to learn Python for free (and when a paid course is worth it)

By dedigger ·

Some links in this guide are affiliate links: if you buy through them, dedigger may earn a commission at no extra cost to you. Commissions do not decide what we include, and we also list options that pay us nothing.

"Python course" is one of the most common searches on dedigger, and many of the results are copies of paid courses shared on Google Drive. You don't need them. Some of the best Python teaching in the world is free and legal, it's up to date, and it comes with exercises that check your work. Here is where to find it and how to use it.

The best free resources

Harvard CS50's Introduction to Programming with Python

CS50P is Harvard's beginner course: video lectures, notes and weekly problem sets that are checked automatically. It's free, and you can earn a free certificate by completing the problem sets and a final project. Start here if you've never programmed.

Automate the Boring Stuff with Python

Al Sweigart's book is free to read online. It teaches Python through practical tasks: renaming files, editing spreadsheets, filling in forms, scraping web pages. Ideal if you want Python for work rather than for a programming career.

Python for Everybody

Dr. Charles Severance's course is free at py4e.com, with videos, a free textbook and exercises. It's also on Coursera as a University of Michigan specialization, if you want a paid certificate.

The official tutorial

The Python tutorial on python.org is short and precise. It's not the friendliest first step, but it's the best reference once you know the basics.

freeCodeCamp and Kaggle Learn

freeCodeCamp has a free Python curriculum with projects and certifications. Kaggle Learn has short, free interactive courses on Python, pandas and machine learning that run in your browser.

You don't need a powerful computer

You can write and run Python in your browser with Google Colab, which is free and saves your notebooks to Google Drive. It works on any laptop and, for reading and small edits, even on a phone. When you're ready, install Python from python.org and a free editor such as VS Code.

A simple eight-week plan

  1. Weeks 1–2: variables, conditions, loops and functions. CS50P weeks 0–2, or the first chapters of Automate the Boring Stuff.
  2. Weeks 3–4: lists, dictionaries, files and errors. Write a small program every day.
  3. Weeks 5–6: pick a direction: automation, data analysis (pandas), or web (Flask or Django). Follow one tutorial in that direction.
  4. Weeks 7–8: build one project of your own from scratch, such as a budget tracker or a script that renames your photos. Put it on GitHub.

An hour a day beats a whole Sunday once a week. When you're stuck, read the error message first; it usually tells you the line and the reason.

Why not a pirated course?

  • They're often outdated. Copies circulate for years after the course was updated.
  • They're incomplete. Exercises, quizzes and the instructor's Q&A don't come with the videos.
  • ZIP files from strangers are a malware risk. A course archive is an easy place to hide an executable.
  • No certificate. If you want proof of what you learned, you need the real course.

When a paid course is worth it

Free resources teach you Python. Paying makes sense when you want something specific:

  • A recognized certificate for your CV: Coursera offers university and company certificates, such as Google's and IBM's data and IT programs. Many of its courses can be started for free.
  • One focused course you keep forever: on Udemy you buy courses one at a time, often at a low price, with lifetime access.
  • Daily practice with feedback for data science: DataCamp teaches through short exercises in the browser, on a subscription.

Frequently asked questions

Can I learn Python only on my phone?

You can study and practice small exercises on a phone with Colab or a Python app, but for real projects you'll want a keyboard and a bigger screen.

How long does it take to learn Python?

About two months of regular practice to write useful scripts; longer to be job-ready, depending on the field.

Where can I find free Python notes and exercises?

Teachers share many on Google Drive. Search syllabi and study guides, or try python exercises *.pdf on dedigger.

Find public files in Google Drive
to look at a lot of things in order to find what you want or need

Advertise on dedigger