Why does a function that prints instead of returns hand back a mysterious None — and how does a function live in memory as an object bound to a name?
Short drills on what this video just taught. Write the code, run the checks, and reveal the answer only if you are stuck.
Here is the specification. Write a function div_by(n, d), where n and d are integers greater than 0, that gives back True when d divides n evenly and False when it does not. Then call div_by(80, 4) and store the value it hands back in divides.
Hint: % gives the remainder of a division, == compares two values, and return (not print) is what hands a value back to the caller.