100% free Certificate included Downloadable templates

Free Python Course for Beginners

Learn to code in Python step by step, from your first program to pandas, SQL, web scraping and machine learning, with real projects and tested code.

  • 16lessons
  • 3h 32minof reading
  • 64review questions
  • 16worked exercises

No sign-up needed: just start reading. Create a free account to save your progress and get your certificate.

What you’ll learn

  • Install Python and VS Code and run your programs from the terminal
  • Use variables, data types and arithmetic, comparison and logical operators
  • Work with text using string methods, slicing and f-strings
  • Make decisions with if, elif, else and match
  • Repeat tasks with for and while loops and list comprehensions
  • Organize data with lists, tuples, dictionaries and sets
  • Write reusable functions and split code into modules
  • Read and write text, CSV and JSON files and handle errors with try/except
  • Build a complete command-line expense tracker
  • Model real things with classes, inheritance and dataclasses
  • Manage projects with pip, virtual environments, requirements.txt and pytest
  • Analyze data with pandas: filter, group, pivot and merge
  • Call web APIs, keep API keys safe and automate reports
  • Query SQLite databases with SQL from Python and avoid SQL injection
  • Create bar charts, line charts and dashboards with matplotlib
  • Scrape web pages responsibly with requests and BeautifulSoup
  • Train and evaluate your first machine learning model with scikit-learn
A clear goal

Every lesson starts by telling you what you’ll be able to do.

Real examples

Real-life cases from U.S. households and small businesses.

Instant quizzes

Check what you learned with immediate feedback.

Worked exercise

Practice first, then compare with the solution.

Course syllabus

4 levels · 16 lessons · 3h 32min of content

1 Level 1Beginner 4 lessons · 52 min
  1. 1
    What Is Python? How to Install It and Write Your First Program

    What Python is used for, installing it on Windows, macOS and Linux, VS Code, print() and how to read error messages.

    14 min
  2. 2
    Python Variables, Data Types and Operators

    int, float, str and bool, type conversion, and arithmetic, comparison and logical operators.

    14 min
  3. 3
    Python Strings, F-Strings and input()

    Indexing, slicing, string methods, f-strings with number formatting and how to ask the user for data.

    12 min
  4. 4
    Python Conditionals: if, elif, else and match

    Making decisions, compound conditions, truthy and falsy values, the ternary expression and match.

    12 min
2 Level 2Intermediate 4 lessons · 53 min
  1. 5
    Python for and while Loops: range, break and continue

    Looping over collections, range(), accumulators, while, break, continue and list comprehensions.

    13 min
  2. 6
    Python Lists, Tuples, Dictionaries and Sets

    Python's four built-in data structures, their methods and when to use each one.

    13 min
  3. 7
    Python Functions: Parameters, return and Modules

    Defining functions, default arguments, return, scope, docstrings, import and organizing your code.

    13 min
  4. 8
    Python Files, Error Handling and Your First Project

    try/except, text, CSV and JSON files, and a complete expense tracker.

    14 min
3 Level 3Advanced 4 lessons · 53 min
  1. 9
    Python Classes and Objects: Object-Oriented Programming

    Classes, objects, __init__ and self, __str__, encapsulation, inheritance and dataclasses.

    13 min
  2. 10
    Python Modules, Packages, pip and Virtual Environments

    Splitting a project into files, installing libraries, venv, requirements.txt and tests with pytest.

    13 min
  3. 11
    Data Analysis with pandas: From Excel to Python

    DataFrames, filters, calculated columns, cleaning, groupby, pivot tables, merge, Excel export and charts.

    12 min
  4. 12
    Python APIs and Automation: requests, Files and Reports

    Calling APIs with requests, keeping keys safe, automating files, generating Excel reports and scheduling scripts.

    15 min
4 Level 4Expert 4 lessons · 53 min
  1. 13
    Python and SQL: Databases with SQLite from Scratch

    Create a database, query it with SELECT, GROUP BY and JOIN, use parameters to block SQL injection and load results into pandas.

    14 min
  2. 14
    Python Charts with matplotlib: Bar Charts, Line Charts and a Report Dashboard

    Line, bar and stacked bar charts, plotting from pandas, dashboards with subplots and rules for honest charts.

    13 min
  3. 15
    Web Scraping with Python: requests and BeautifulSoup Step by Step

    Extract data from web pages legally and responsibly: CSS selectors, pagination, delays, CSV export and JavaScript pages.

    13 min
  4. 16
    Machine Learning with Python: Your First Model with scikit-learn

    Regression to predict sales, training and test data, MAE, R², a baseline, interpreting the model and overfitting.

    13 min

About this course

Learn to code with Python, the most in-demand language for automation, data analysis and artificial intelligence, with no prior experience. This free Python course for beginners starts with installing Python and writing your first line of code, and every example uses realistic U.S. small-business data in dollars.

Across 16 lessons in four levels you'll go from variables, strings, conditionals, loops, data structures, functions and files to professional skills: object-oriented programming, modules and virtual environments, data analysis with pandas, web APIs and task automation. The Expert level adds SQL databases with SQLite, charts and dashboards with matplotlib, responsible web scraping and an introduction to machine learning with scikit-learn. Every lesson has tested code with its real output, interactive quizzes, the most common errors and an exercise with a solution. You'll build real projects: an expense tracker, an automated report that pulls exchange rates from an API, a sales dashboard, a scraper and a model that predicts sales.

Includes free downloadable resources: practice data files (CSV) for the expense tracker project and for the pandas, SQL and charting lessons.

Downloadable resources

Templates and practice data you’ll use throughout the course. Free, no sign-up.

Frequently asked questions

Do I need any coding experience to take this Python course?
No. The course starts from zero: what a program is, how to install Python and how to write your first line of code. Each lesson builds on the previous one.
Which version of Python does the course use?
Python 3. Every example works on Python 3.10 or newer (the match statement needs 3.10+), including the current Python 3.15 released in October 2026. If you install a newer version, the code works the same way.
Can I take the course on my phone or without installing anything?
You can read every lesson on your phone and practice the early ones in Google Colab or another online editor. For the lessons on files, virtual environments and automation, a Windows, Mac or Linux computer works best.
Is this Python course really free, and is there a certificate?
Yes. All 16 lessons are free and public. With a free account you can track your progress, mark lessons as completed and download a certificate of completion when you finish.
Does the course cover SQL, data analysis and machine learning?
Yes. You'll analyze data with pandas, query SQLite databases with SQL from Python, build charts with matplotlib, scrape web pages with requests and BeautifulSoup, and train and properly evaluate your first machine learning model with scikit-learn.
What can I do after finishing this course?
You'll be ready to go deeper into data analytics, web development (Django or FastAPI), automation or AI. The Expert level gives you a working base in SQL, visualization, scraping and machine learning so you can choose a specialty and start building a portfolio.