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.

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

Read reviews of their learning experiences

Great start to learn how to code. The interactive exercises in the browser and help you can ask from ai assistant boots are really great. It forces you to learn in a very effective way.

(4/5)
Okbe p.ivs profile image

Okbe p.ivs

Belgium

It is a good course but do not be afraid to use Boots or do the course alongside the video tutorial that is provided on youtube. I know that those things can feel like cheating but when you don't have a professor going along with you to catch your mistakes these options may be better than forming bad habits.

(3/5)
Jonathon Corrodus profile image

Jonathon Corrodus

United States

Good for absolute beginners. Explanations are straightforward, you get your hands dirty immediately and it is just enough to start doing stuff without getting stuck at advanced concepts which are reserved for later.

(5/5)
Bakhtiyar Kussainov profile image

Bakhtiyar Kussainov

Kazakhstan

Lovely course , perfect fundamentals am sure the next courses will build upon this as well, can't wait!!!

(5/5)
Kamal Pendyala profile image

Kamal Pendyala

India

A very simple and easy to understand course! It helps to have prior programming knowledge, but even a non-programmer should be able to pick this up.

(5/5)
David Benoit-Harris profile image

David Benoit-Harris

United States

This course was awesome! I was able to revise all the Python basics in a relatively short amount of time while covering the essentials! Loved the type hinting chapter and handling errors one too!

(5/5)
Saketh  profile image

Saketh

India

Amazing course, loved it!

(5/5)
Bohdan Rubets profile image

Bohdan Rubets

Ukraine

A good course to learn Python. However, not always straightforward and the instructions can be a little confusing. Definitely uses the Socrates method of deducing the answer through questioning. You'll rely heavily on the textbook and notes you make a long the way.

(5/5)
Timothy  profile image

Timothy

United Kingdom

It was an amazing course, moreover talking about the problems there were some really great problems which i really liked and learned a lot from them. How? firstly the keywords and how a lot of things can be defined was something new to me, i have been learning python for a month and never knew that i can assign the variables for a specific type which was kinda odd at first, I was like i have never seen anything like this and never knew something like this existed.

(4/5)
Akshat Sharma profile image

Akshat Sharma

India

Showing 1-9 of 4503

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.