Why can a function freely read a global variable, yet raise UnboundLocalError the instant you try to assign to that same name?
Short drills on what this video just taught. Write the code, run the checks, and reveal the answer only if you are stuck.
Define a function subtract(a, b) that returns a - b. Two values are given: x = 10 and y = 3. Call your function so that it computes 10 minus 3 — think about which argument lands on which parameter — and assign the returned value to diff.