We're sorry but this app doesn't work properly without JavaScript enabled. Please enable it to continue.

Learn to Code in Python

Start coding in Python with hands-on lessons that build the habits you'll use in every future course.

Browse Lessons (read-only)

What will you learn?

Learn the basics of the Python programming language, and why it's one of the most popular programming languages out there. You'll get hands-on practice with all the core concepts, and learn how to apply them to real-world problems. You don't need any prior programming experience to be able to complete this course, it's intended for complete beginners.

Chapter List

1
Introduction
Learn about the Python programming language and why it's so ubiquitous
2
Variables
Learn how variables are declared and used in Python
3
Functions
Learn how to declare and call functions
4
Scope
Learn how Python scopes variables in different contexts
5
Testing and Debugging
Learn how unit tests and good debugging practices will help you write better code
6
Computing
Learn the basics of how computers work internally
7
Comparisons
Learn how to compare different values and make logical decisions in a program
8
Loops
Master the art of reusing code
9
Lists
Learn the most basic and powerful data structure in all of coding
10
Dictionaries
Learn about Python's built-in support for complex structures
11
Sets
Master another basic data structure of the Python language
12
Errors
Learn how to deal with unexpected data and inputs in a Python program
13
Type Hints
Learn how to use type hints to make Python code easier to read and debug
14
Practice
Put your skills to work by squashing extra challenging practice problems
15
Quiz
Quiz yourself on some of the important-to-know facts about the Python language

Join 773,006 students in the Learn to Code in Python course

Read reviews of their learning experiences

I've started and stopped a few python courses and the boot.dev course is by far the best. It's difficult, but easy to stay motivated to complete. I'm looking forward to continuing the backend dev course.

(5/5)
Heath Babb profile image

Heath Babb

United States

This is an excellent course for learning the basics of coding. This course uses Python, which is an easy to read and write language, meaning you'll be spending more of your time learning the key concepts and foundations of programing, rather than wrestling with language-specific syntax.

(5/5)
Amara  profile image

Amara

United States

This did help me in understanding the many different aspects of Python and some of the basics of coding. I would recommend it. The game built in is like any game I have played, you have to lean it as you go. The help is the best aspect of the game. There are several different ways of getting help. you just need to find the one you prefer and use it.

(5/5)
Jack Reuter profile image

Jack Reuter

United States

Very good. Hits all the fundementals. Type hinting lessons helps teach about real Python applications, not just classroom level theory.

(5/5)
Anthony Chan profile image

Anthony Chan

United Kingdom

it taught everything in the perfect order

(5/5)
Micah Resnick profile image

Micah Resnick

United States

I was familiar with a lot of the concepts beforehand so it was really like a walk in the park for me. But it was nice to go through the basics once more. There was some stuff that I'd forgotten about.

(5/5)
Juris Birznieks profile image

Juris Birznieks

Latvia

You've done an amazing job Devs! It really kept me hooked on wanting to learn. The way you reward us for learning is truly something I think every school should incorporate.

(5/5)
Nathan M profile image

Nathan M

South Africa

i love how they gamified the course.

(5/5)
Kyle Spengler profile image

Kyle Spengler

United States

This course has everything one could ask for: covering all the basics in a well-paced, well-structured environment, a peerless assistant in the form of Boots who can go into every detail to help you, clear explanations and great simulations to not only give you the necessary knowledge, but also the necessary practice to become confident and competent! I can't recommend it enough!

(5/5)
Gabriel Tousignant profile image

Gabriel Tousignant

Canada

Showing 1-9 of 4666

Browse Lessons (read-only)

or view more reviews

Mediocrity doesn't cut it anymore

The only way to become a great developer is to write a lot of code

Avoid tutorial hell

by writing a ton of code

Stay motivated with

a game-like curriculum

Build portfolio projects

to prove your skills

Delve deeper

into foundational concepts

Learn flexibly online

without interrupting your life

For 1% the price of college

to minimize your financial risk

Frequently asked Questions

Got questions? We've got answers

Yes! It's free to create an account and start learning. You'll get all the immersive and interactive features for free for a few chapters. After that, if you still haven't paid for a membership, you'll be in read-only (content only) mode.