Skip to content

Learn Python
by doing.

Start from zero with guided lessons and real coding exercises, right in your browser.

  • Free beginner course
  • No account required
  • No setup

Try your first line.

Run this code to display a message.

Press Control or Command and Enter to run your code.
Output
Your message will appear here.

A little learning.
A lot of doing.

01

Learn in small Bytes.

One idea at a time, with an example you can follow.

Make Python say hello.

print() displays a message on the screen.

print("Hi!")

The quotes tell Python which characters belong to your message. This line displays Hi!

02

Check that it clicks.

Try a quick question before moving on to code.

What does this line display?

print("Hi!")
03

Put it into practice.

Write real Python in the exercise workspace. Run your code, see what happens, and check your answer.

This is the same IDE you’ll use in the course. Try putting "Hi!" inside print(), then run it and check your answer.

Put it all together.

Build complete programs, one step at a time.

Your first complete program

Cinema Ticket Kiosk

Collect answers, check the details, and turn pricing rules into a printed ticket.

Explore the project
A game that responds to you

Quiz Tournament

Ask shuffled questions, check the answers, and keep score across a full round.

Explore the project
A task you can automate

Expense Report

Read expense data, add up category totals, and save a report automatically.

Explore the project

Or see the learning path

A clear way
forward.

Build from your first print() to functions, files, and complete programs.

Level
Complete beginner
Experience
None needed
Format
Lessons, quizzes & coding
View the full learning path
BEGINNER PYTHON16 sections
01First Code & Early Errors

Write your first lines of Python, use print(), add comments, and learn to recognize early errors.

02Values & Variables
03Strings & Text
04Input & Conversion

Read input from a user and convert it into the data types your program needs.

05Booleans & Logic

Make decisions with Boolean values, comparisons, logical operators, and truthy or falsy data.

06Branching
Show all 16 sectionsShow fewer sections
07List Basics

Store ordered collections in lists and retrieve individual items or slices.

08Loops I: for Loops & Loop Patterns
09Lists: Mutation & Building Patterns
10Loops II: while Loops

Use while loops for condition-driven repetition, validation, menus, and sentinel values.

11Dictionaries, Tuples & Sets
12Functions
13Modules & Imports
14Files & Data
15Errors, Validation & Debugging
16Code Style & Habits

Write readable Python, follow common style conventions, document intent, and understand unfamiliar code.

The first Python lessons arranged as floppy disks with connecting routes on the Skill Map. Explore the roadmap

Before you start.

Do I need any programming experience?

No. Beginner Python Block starts with your first line of code and introduces each concept along the way. You can start from zero.

Is the entire beginner course free?

Yes! The complete Beginner Python Block, including its quizzes, coding exercises, and projects, is free!

Do I need an account or any software?

No account or installation is needed to start. Python runs in your browser. You can create a free account whenever you want to sync lesson progress across devices.

How is my progress saved?

Without an account, your lesson progress stays in this browser on this device. Signing in lets you sync lesson progress across devices. If you started before signing in, you can import that browser progress from your account settings. In both cases your code and project files stay in the browser where you wrote them.

Create a free account →

Can I learn on my phone?

Well, kinda. The lessons, quizzes, and coding exercises work in your mobile browser. But writing code on mobile phone is not the best experience.

Your first Python program
starts here.

Write your first Python programStart learning