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

Read reviews of their learning experiences

This is the most fun youll have with a course.

(5/5)
Federico Aragon profile image

Federico Aragon

United States

Learned very well in this course, and the assignments are challenging enough to reinforce that learning. Boots AI was also extremely helpful when I was stuck.

(5/5)
Keith Korir profile image

Keith Korir

United States

This is a great course for beginners! I majored in Game Dev in college but didn't focus on the coding aspect really at all. So if you're starting from scratch, give this a shot!

(5/5)
Connor Wilson profile image

Connor Wilson

United States

Easy to understand and fun. It teaches you the basics with great coding challenges and excellent explanation of concepts.

(5/5)
Simon Pocrnjič profile image

Simon Pocrnjič

Slovenia

gj

(5/5)
Emmet Feeney profile image

Emmet Feeney

United States

From an absolute newbie's perspective, learning through this course has been both challenging and rewarding, and the tools in the system helped guide me to solving the tasks without feeling completely lost or adversely undermined.

(5/5)
Josh Wayson profile image

Josh Wayson

United States

This was the best refresher I have had for python.

(5/5)
Zain Imran profile image

Zain Imran

Pakistan

Very comprehensive and the greatest course about how to write code in python

(5/5)
Ozodbek Shukurov profile image

Ozodbek Shukurov

Uzbekistan

This course is a great starting point for beginners learning Python. It explains concepts clearly and reinforces learning through practical coding exercises in a game-style format. The assignments can be challenging, but they help build strong problem-solving skills and attention to detail. Overall, it’s a solid and effective way to learn programming fundamentals.

(5/5)
YOHANA  profile image

YOHANA

Rwanda

Showing 1-9 of 4731

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.