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

Read reviews of their learning experiences

Some of the lessons are difficult but it starts off easy for all foundational knowledge for the language.

(5/5)
Wombatty  profile image

Wombatty

United States

Wow.. not only was it super easyto understand but was REALLY fun.. didnt even know courses could be that fun 😂

(5/5)
Harry  profile image

Harry

London

Definitely a lot of value. But some concepts I needed to look up for a deeper explanation. The spell books I wish were more thorough. Overall it was still solid.

(4/5)
Lee Know profile image

Lee Know

United States

i learned a lot from this couse

(5/5)
Gianni Cristiano profile image

Gianni Cristiano

United States

Great to refresh your skills and keep them sharp

(4/5)
Dominik G profile image

Dominik G

Turkey

This course was a wonderful and relatively gentle introduction to Python. Lessons are perfectly bite-sized, I found no bugs in the course (kudos!) and it covers just enough material for someone new to the language to become dangerous 😃.

(5/5)
Ismar Iljazovic profile image

Ismar Iljazovic

Zurich, Switzerland

I think the course is a great starting point espescially for people that play video games, because it draws a lot of real life parallels to the code one writes, instead of just some code and you have no idea what it's used for.

(5/5)
Alex Canziani profile image

Alex Canziani

Switzerland

It was a fun, simple, and worthwhile course. I would recommend.

(5/5)
Isaiah  profile image

Isaiah

United States

this course could have included some challenging bugs or hard debugging quizzes that are asked in online assessments. but overall i think this course is only good to those people who do not know anything about programming, would not recommend it to people who are switching from other languages.

(3/5)
Soham Margaj profile image

Soham Margaj

India

Showing 1-9 of 4596

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.