Assignment isn't equality — it's a name pointing to a value. Why the classic swap needs a temporary variable.
Short drills on what this video just taught. Write the code, run the checks, and reveal the answer only if you are stuck.
Two values are already bound for you: pi = 3.14159 and radius = 2.2.
Use them to compute the area of a circle (area = π · r²) and assign the result to area.
Assignment binds a value to a name
Write the rule that Python evaluates the right side first and binds the result to the one simple name on the left, with x = 6 valid and 6 = x a syntax error.
Rebinding discards the old value
Trace meters = 100, feet = meters * 3.2808, meters = 200 line by line, recording after each line that feet holds 328.08 and does not follow meters.
Swapping two names through a temporary
From x = 1 and y = 2, write the failing y = x then x = y, then the version using temp, listing the value bound to each name after every line.