When should a function raise its own ValueError, and when should an assert refuse to let the program continue at all?
Short drills on what this video just taught. Write the code, run the checks, and reveal the answer only if you are stuck.
Define pairwise_division(Lnum, Ldenom). Both arguments are non-empty lists of numbers of equal length. Return a new list holding each element of Lnum divided by the element sitting at the matching position of Ldenom. With [4, 5, 6] and [1, 2, 3] the result is [4.0, 2.5, 2.0].
A loop or a one-line comprehension are equally fine. (Hint: len() reports a list's length, range() counts up to it, and L.append(v) adds v to the end of a list.)