Return values
A function returns one value, but that value can be a tuple. return low, high
builds the tuple (low, high), and the caller can unpack it straight into two
names: lo, hi = min_max(nums).
return also ends the function right away. Returning early for the easy cases
(empty input, bad input) keeps the main logic flat instead of nested inside
if blocks. Interviewers like this style because it is easy to follow.
The surprise: a function that reaches its end without return gives back
None. So does a bare return. A common bug is a function that returns in one
branch and forgets the other, and the caller later fails with
'NoneType' object is not subscriptable.
Run it, then delete the last return in sign and see what sign(0) gives.