A function can send back more than one value, and it keeps its own working names to itself. Understanding which names exist where, called scope, removes a whole family of confusing errors, and explains why functions are safe to write.
More lessons in Complete Python Programming