I have a similar question. In the quiz, a function is defined as follows:
def update(new_value = 10):
old_value = new_value
It asks how to call the function with new_value of 20.
The correct answer is
So does this work because there is only one parameter for the function, so that the keyword new_value doesn’t need to be explicitly spelled out when calling the function? If there were more parameters, each with a default value, or some has default values and others don’t, how would it work? Would the keyword arguments need to be spelled out in those cases?