Every program works with data. Learn how Python stores, labels, and transforms information — the building blocks for everything that follows.
Use print() to show messages, results, and formatted text.
Create named containers that hold values you can use and change.
Distinguish between strings, integers, floats, and booleans.
Cast values with int(), str(), float() and build f-strings.
Read input and transform it into usable data for your programs.
All arithmetic operators including floor division and modulo.
Type any value below — or click an example — and see how Python interprets it. This is a preview of what you'll master in Lessons 1.3 and 1.4.
Click any lesson to see its challenges. Each one builds on the last.
Write your very first program. Learn print(), understand strings as messages, and see your code come to life.
Give names to your data. Create variables, follow naming rules, and learn how reassignment works.
Discover the four foundational types: str, int, float, and bool. Learn why types matter and how to inspect them.
Transform data between types and build beautifully formatted output using Python's f-string syntax.
Make your programs interactive with input() and do real calculations with all of Python's arithmetic operators.
Put it all together! Build a text-based character creator that collects input, calculates stats, and prints a formatted character sheet. Everything from Unit 1 in one program.
Lesson 1.1 takes about 15 minutes. No installs, no setup — just you and Python in your browser.
Begin Lesson 1.1 →