01 / 07
No way of telling what to pass in
When you met functions in Chapter 3, a name was all you could put on an argument. Look at the line def add(a, b): and there is nothing to tell you what belongs in a until you read the body.
And this function really will take numbers or text. Whoever wrote it may have meant numbers, but that intention is written down nowhere.
def add(a, b): return a + bprint(add(2, 3))print(add("cat", "dog"))Result
5 catdog