Unobi Training
Beginner Python • Core Fundamentals

Python Variables for Beginners

Learn one of the most important building blocks in Python: variables. This lesson introduces naming, assignment, strings, integers, booleans, None, dynamic typing, and simple type conversion in a beginner-friendly format.

Level 1 Early Python fundamentals
Beginner Focus Clear, practical examples
Notebook Included Follow along in Jupyter

What you will learn

  • How to name variables clearly and avoid invalid names
  • The difference between assignment (=) and comparison (==)
  • How strings differ from numbers, including "5" versus 5
  • Why Python is called a dynamically typed language
  • How to convert a value like "5" into 5 with int()
  • How booleans and None behave in simple examples

Watch the Video Lesson

Follow along with the video, then download the notebook and run each example yourself.

Lesson Topics

This lesson keeps the focus on variables so beginners can build a strong foundation before moving into loops, math, and more advanced Python topics.

Variable Naming

See how Python variables are commonly named, what makes a good name, and which names are invalid or reserved.

Types and Reassignment

Understand how Python can store text, numbers, booleans, and None, and how a variable can change from one type to another.

Basic Casting

Learn why a = 5 and b = "2" cannot be added directly, and how int() solves that problem.

Covered in this class

  • Good and bad variable names
  • Assignment vs comparison
  • Strings, integers, floats, booleans, and None
  • Single quotes, double quotes, and triple quotes
  • Dynamic typing in Python
  • Basic casting with int(), float(), and str()

Why this matters

  • Variables appear in nearly every Python program
  • Understanding types prevents common beginner errors
  • Simple conversion helps prepare for future input and output labs
  • Strong fundamentals make later topics much easier to learn

Download the Playbook

Use the Jupyter notebook to review the examples, run the code yourself, and experiment with the values.

Variables Notebook

Download the lesson playbook and work through the examples step by step.

Tip: Watch the video first, then open the notebook and make small changes to each example. That is one of the fastest ways to build Python confidence.

Keep Going

Once variables make sense, you are ready to build on that foundation with loops, data structures, math, and input/output.