HomeCourse › Module 03

Variables and Data Types

Strings, numbers, booleans, None — the building blocks of every Python value, and how they map to Excel's cell types.

Foundations 7 lessons ~55 min

By the end of this module you'll know what every value in Python is made of: text, whole numbers, decimal numbers, true/false flags, and "nothing." You'll be reading and writing the most-common Python building blocks like an Excel formula.

Lessons in this module

  1. Variables — Python's version of a named cell · 8 min
    How to give a value a name, and the rules for what names are allowed.
  2. Numbers — ints, floats, and the math operators · 7 min
    Whole numbers, decimal numbers, and every math operator Python supports.
  3. Strings — text values and how to wrangle them · 9 min
    Quotes, f-strings, slicing, methods like .upper() and .replace().
  4. Booleans and comparisons · 6 min
    True, False, and the operators that compare values.
  5. None, type conversions, and reading the type · 7 min
    The special value None, plus the int(), str(), float() conversion functions.
  6. Talking to the user — input() and print() · 6 min
    How to ask the user a question and show them an answer.
  7. Comments — notes to your future self · 5 min
    How to leave notes in your code, and the difference between a comment and a docstring.