Python Tutorial

Python Variables

Variables

Variables store data values. Python provides clear rules for declaring and updating variables.

  • Assign with =
  • Multiple assignment supported
  • Naming: snake_case
name = "Sturdee"
age = 21
is_student = True
print(name, age)
Try it Yourself
Run this PYTHON example in your local environment or course sandbox.