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 775,867 students in the Learn to Code in Python course

Read reviews of their learning experiences

A great introductory course to Python going over all basic programming functions and features. A great place to start or brush up on programming how-to's.

(5/5)
Mechnikov Jotunnson profile image

Mechnikov Jotunnson

United States

This is a great course to challenge you to learn Python. I appreciate that Boots does not simply give you answers but gives small hints to help when stuck. I still have a lot to learn, but this was a tremendous start!

(5/5)
Caleb Sarber profile image

Caleb Sarber

United States

As someone who just started out of curiosity, this course is very well made, and i like the option of the AI boots to help you if you are stuck, it doesn't give you the answer but helps you to find it yourself, even if you write to boots like 20 times in a single exersice.

(5/5)
armando godoy profile image

armando godoy

Mexico

I have a little bit of background with basic java and C++. Had not really messed with Python until this course, and wow what an intuitive structure. The ideas and functions we learned here are solid fundamentals, and this made picking up Python a breeze.

(5/5)
Forrest Cox profile image

Forrest Cox

United States

It's a great course, but sometimes it goes to fast. The course takes small steps in the beginning, and then suddenly it takes some big steps that are difficult to handle.

(4/5)
Glenn Seljeseth profile image

Glenn Seljeseth

Norway

As a beginner I felt very, very hard exercise and everything was hard to remember to apply and it's like a swimmer dropped in a massive ocean. But to be honest it's not like other platforms. I have checked the other platforms like Codidex and Scrimba, which are not that good enough and hard. But genuinely this is very hard and I think it is developing the mind of a developer for beginners or anyone... Thank you.

(5/5)
Ram Dattu profile image

Ram Dattu

India

The first course on an online self-drive platform that I actually completed. Y'all did a great job making it engaging and encouraging.

(5/5)
Ryan Doig profile image

Ryan Doig

United States

This course was so great! I was learning all of this for the first time and it was an amazing experience.

(5/5)
Eric Page profile image

Eric Page

United States

Probably the best way how learn basics of Python and programming logic thanks to Boot's gamification style and AI that doesn't straight up tell you the answer but challenges you to come with the solution by yourself.

(5/5)
Blu VR profile image

Blu VR

Czechia

Showing 1-9 of 4715

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.