THE COURSE

Learn Python

Follow the beginner path, build three small projects, then explore the next steps. Every lesson has a runnable console, a checked task, a quiz, and a video.

Start the course

21 results

LESSON 0011 min

Python History

Trace Python's beginnings, its name, and the arrival of Python 3.

LESSON 0110 min

Hello, World!

Run your first Python statements and recognize how Python displays output.

LESSON 0213 min

Variables and Types

Store values in variables and distinguish common Python data types.

LESSON 0315 min

Lists

Create a list, access its items, and change its contents.

LESSON 0413 min

Basic Operators

Use Python operators to calculate values and compare results.

LESSON 0512 min

String Formatting

Build readable text that includes variables and formatted numbers.

LESSON 0614 min

Basic String Operations

Read characters and slices from strings and apply common string methods.

LESSON 0715 min

Conditions

Choose which code runs using comparisons and if, elif, and else.

LESSON 0816 min

Loops

Repeat work with for and while loops and recognize when a loop stops.

LESSON 0916 min

Functions

Define reusable code with parameters and return a result.

LESSON 1017 min

Classes and Objects

Create a simple class and give each instance its own data.

LESSON 1115 min

Dictionaries

Store related values by key and retrieve or update them.

LESSON 1215 min

Modules and Packages

Import a module and use a function from Python's standard library.

LESSON 1313 min

Input and Output

Understand text input, convert it when needed, and present useful output.

PRACTICE PROJECT 1419 min

Project: Tip Calculator

Combine functions, arithmetic, and formatted output to split a restaurant bill.

PRACTICE PROJECT 1520 min

Project: Number Guessing Game

Use comparisons, a function, and a loop to evaluate guesses until the answer is found.

PRACTICE PROJECT 1621 min

Project: Text Analyzer

Combine string methods, a loop, and a dictionary to summarize a sentence.

NEXT STEPS 1717 min

Tuples and Sets

Choose a tuple for a fixed group and a set for distinct values.

NEXT STEPS 1818 min

Exceptions

Catch expected runtime errors and return useful messages without hiding unrelated bugs.

NEXT STEPS 1919 min

Reading and Writing Files

Write and read a UTF-8 text file with a context manager.

NEXT STEPS 2020 min

Installing Python and Virtual Environments

Set up a local Python installation and understand how a virtual environment isolates project packages.