The essentials
A variable is a name referring to a value. In Python, assignment uses =. Equality comparison uses ==.
Programs execute statements in order unless control flow changes that order. Reading code step by step is called tracing.
Worked example
x = 3
x = x + 2
print(x)
The output is 5. The second line reads the old value and assigns the new value.