Variable Naming
See how Python variables are commonly named, what makes a good name, and which names are invalid or reserved.
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.
=) and comparison (==)"5" versus 5"5" into 5 with int()None behave in simple examplesFollow along with the video, then download the notebook and run each example yourself.
This lesson keeps the focus on variables so beginners can build a strong foundation before moving into loops, math, and more advanced Python topics.
See how Python variables are commonly named, what makes a good name, and which names are invalid or reserved.
Understand how Python can store text, numbers, booleans, and None, and how a variable can change from one type to another.
Learn why a = 5 and b = "2" cannot be added directly, and how int() solves that problem.
Noneint(), float(), and str()Use the Jupyter notebook to review the examples, run the code yourself, and experiment with the values.
Download the lesson playbook and work through the examples step by step.