What are variables?
Labels you can assign to values
How do you assign value 5 to variable num?
num = 5
How do you assign values 3, 5, 8 to variables x, y, and z respectively?
x, y, z = 3, 5, 8
How do you change a variable’s value?
Just assign a different value to that variable
name = “John”
name = “Jane”
What are the rules for variable names?
Does it matter if variables are lower or uppercase?
All variables should be lowercase and all constants should be CAPITALCASE.
What is a constant?
A variable whose value stays the same throughout the life of a program.