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

Learn to Code in Python

Learn to code using the latest version of Python 3, arguably the most popular professional programming language

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
Practice
Put your skills to work by squashing extra challenging practice problems
14
Quiz
Quiz yourself on some of the important-to-know facts about the Python language

Join 29,475 students in the Learn to Code in Python course

Read reviews of their learning experiences

Short but impactful—taught me exactly what I needed.

(4/5)
So Vesali profile image

So Vesali

Kansas City, KS

Fantastic! The explanations were crisp and the demos were grounded in real engineering scenarios. What stood out to me was the clear discussion around testing strategies and how to evolve a codebase over time. The sample repository was well-structured and made it simple to jump between sections. I’d love to see a follow-up lesson that goes deeper into profiling and performance tuning.

(5/5)
Math  profile image

Math

Luzern, Switzerland

This lesson exceeded my expectations. I went in thinking I knew the basics, but the deeper dives into trade-offs and edge cases were exactly what I needed. The instructor didn’t just show ‘happy path’ solutions: they demonstrated how to think about failure modes, performance bottlenecks, and future extensibility. The capstone project, while optional, gave me the perfect sandbox to experiment and get feedback.

(4/5)
UFifty50  profile image

UFifty50

Land of the Pog

The real-world context made the concepts click for me.

(3/5)
Kevin Hernández Rostrán profile image

Kevin Hernández Rostrán

San José, Costa Rica

Solid overview with just enough depth to be practical.

(3/5)
Lekan Adeyeri profile image

Lekan Adeyeri

boston, ma

Great lesson, super clear.

(5/5)
Karida Chen profile image

Karida Chen

Toronto, Canada

Solid overview with just enough depth to be practical.

(5/5)
Fabio Hirt profile image

Fabio Hirt

Rombach, Switzerland

I appreciated how the instructor broke down the core concepts into digestible steps. The examples were practical and mirrored what I encounter in my day-to-day work. In particular, the section on error handling and observability tied everything together. If I had a minor nitpick, it would be that the pacing sped up in the last module, but the accompanying notes and code samples made it easy to revisit and cement the ideas.

(4/5)
Aleksandar Popovic profile image

Aleksandar Popovic

18229 Mozgovo, Aleksinac, Serbia

Solid overview with just enough depth to be practical.

(5/5)
Aamer Baig profile image

Aamer Baig

Lahore, Pakistan

Showing 1-9 of 10

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.