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

Read reviews of their learning experiences

For a person who have coded for 4 years now I think this is still an ok course to do, especially in the era of AI when ppl do not really understand their code and do not typing code manually. I still remember the first course I took. It was Python but I never really learn about thing called dynamic typed or error handling at that time. I only know that when I went to college and took another principle of programming languages course. That is, quick speed run for expert and great start for newbie

(4/5)
Long Pham profile image

Long Pham

Tampere, Finland

The content of the course is good enough to set a good foundation and automating tasks with python.

(5/5)
Sulaiman Gbadamosi profile image

Sulaiman Gbadamosi

Nigeria

I enjoyed the course. I took a python course before, so this was more of a much needed refresher course. but i did find this learning format very helpful in learning it in a more real world style scenario with game development, as opposed to strictly learning the fundamentals in a standard classroom curriculum. i definitely recommend the course, it really did make an educational experience more entertaining.

(5/5)
William Nixon profile image

William Nixon

United States

This course was very easy to pick up for me coming in with zero experience beforehand. Yes, you might need to look up a thing here or there to find out what is possible, but it felt like how you might look up something to write a paper.

(5/5)
Alex Teufel profile image

Alex Teufel

United States

it was a fun course that you can take your time doing even if you do not have a lot of time like I did just a lesson or two whenever I had the time between work

(5/5)
Rickie Brumfield profile image

Rickie Brumfield

United States

It's a VERY good way to start learning python and also, like in my case to review some fundamentals.

(5/5)
Carlos M. Silva profile image

Carlos M. Silva

Aveiro, Portugal

Great for starting out as a programmer

(5/5)
Jimmy Rairigh profile image

Jimmy Rairigh

United States

100% recommended for people starting out their programming journey. The lessons are all interactive and enjoyable.

(5/5)
Siddharth  profile image

Siddharth

Tamilnadu, India

Excelent course, the game dynamics are super interesting and it helps keep coming back to learn!

(5/5)
Rafael Azzi profile image

Rafael Azzi

Brazil

Showing 1-9 of 4893

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.