Learn Python for Beginners

Learn Python from scratch with hands-on lessons covering functions, loops, data structures, debugging, and problem solving.

What you'll learn in this Python course

Learn Python from scratch by writing code, not just watching videos. This course is built for complete beginners, so you don't need any prior programming experience. Every lesson runs in your browser, and XP, streaks, and quests keep you coming back.

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 912,717 students in the Learn Python for Beginners course

Read reviews of their learning experiences

It's an enjoyable course, and I felt invested in reaching the end of it. It was easy enough to get into, but as lessons went on the solution of some assignments felt like it became more opaque. Sadly, as someone who often needs to be walked through things a few times before they 'get it' this lesson plan and style doesn't seem like it was a good fit for me. I tried to use the Training Ground to supplement my learning, but this seemed unproductive.

(4/5)
Throttle  profile image

Throttle

United States

Even after having gone through multiple Python courses on other platforms, this course still ended up teaching me a few new things!

(5/5)
TheBrokenZone  profile image

TheBrokenZone

United States

Excellent Python course

(5/5)
Michael Sullivan profile image

Michael Sullivan

United States

This course sticks true to its namesake. By the end you will be well rounded at a beginner level. Don't be ashamed to keep notes or look back at previous lessons. Try to be self-dependent, but also talk to boots. Good luck!

(5/5)
Johnathan Perkins profile image

Johnathan Perkins

United States

A very nice introduction to Python. It even covered some concepts that a semester long school course did not! Some lesson tasks required a bit of thinking, but getting a working solution felt very nice.

(5/5)
Lisko Disko profile image

Lisko Disko

Finland

I feel like I learned a good bit about the basics of python and coding in general. I didn't need to show a solution a single time and was able to figure out each assignment using the lesson example and the ai assistant for language help along the way.

(5/5)
Pat H profile image

Pat H

United States

i liked it!

(4/5)
Carlos Infante Pizana profile image

Carlos Infante Pizana

Spain

It was fun and fast :) Nice way to learn syntax and basic concepts.

(5/5)
Maksym Konoval profile image

Maksym Konoval

Poland

Although I already knew most of the stuff in this course and just wanted to do it for completness sake it was a great refresher and I even learned some new quirks that were hidden to me until now.

(5/5)
Bent Schuetz profile image

Bent Schuetz

München

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. This course assumes no programming experience. It starts with variables and functions, then builds up to loops, data structures, testing, debugging, and error handling through hands-on coding exercises.