← all tracks/Python Basics

Data Types, Variables & Operators

Data Types, Variables & Operators: The Building Blocks 🧱

Now that you can show messages and read them back, it's time to actually do something with the information — store it, check what kind of value it is, convert it, do math with it, and compare it.

This unit covers:

  • Variables — storing and reassigning values
  • Data types — the different kinds of values Python works with (int, float, str, bool, list, dict), and converting between them
  • Operators — arithmetic (+ - * / // % **), comparison (== != < > <= >=), and logical (and or not)

We'll cover data types first, since knowing what kind of value you're working with is what makes the rest of this make sense. By the end, you'll be able to store information, understand its type, transform it, and make decisions about it — everything you need before we get to if statements and loops.

# problems