Hour of Python

Python is a great programming language to learn when getting started. It’s also a powerful language used by many companies for making and deploying web apps. Learn more.

We hope you enjoy these lessons and tutorials. You can provide us feedback any time. We read and respond to every message.


Free Lessons

Colorful Python turtle programming blocks

From Blocks to Code

Starting with Blocks, we look at the code underneath and learn some basics of Python!


String Challenges

Test your knowledge of Python’s Strings and learn as you go! Just getting started? Try our Tutorials or Lessons.

Turtle Challenges

Learn how to draw fun shapes with our interactive Challenges


Tutorials

Learn Python in short, easy-to-follow tutorials.

Numbers

Numbers in Python work like numbers you’ve seen elsewhere.

Logic Expressions

Let’s now turn to how it handles inequalities—things that are either true or false.

Variables

Variables in computer science are pretty different than those in math, even though they’re called the same thing.

Conditionals

If statements are how you direct Python to do something if something else is true.

Lists

Python offers a tool called lists to keep track of related “things”, or values.

Loops

While loops tell the computer to do something while something else is true.

Dictionaries

Dictionaries are another built-in Python tool for storing information by translating keys to values.

Randomness

Sometimes when programming it’s helpful to use random numbers.


Lessons in Other Languages

Tina the turtle with a Spanish flag

Una introducción visual a Python

Una introducción visual para aprender a programar Python utilizando tortugas.

Traducción de / translated by Veronica Jimenez

¡Vámonos!

可视化Python简介

使用Python和乌龟对编程的可视化简介

Tina the turtle with a Chinese flag

Translated by Jinzhe Liang

开始!

안녕하세요!

파이썬 프로그래밍 언어와 거북이(Turtle)를 이용하는 눈으로 이해하는 코드 튜토리얼을 소개합니다.

Tina the turtle with a Korean flag

Translated by Youngseok Lee

가자!