Calling with a default value and keyword arguments

Predict the output · Medium · §8.3 Handing over ingredients

Predict the output without running the code.

Code

def gap(a, b=10):
    return a - b

print(gap(3), gap(3, 1), gap(b=1, a=5))

Solve this problem in your browser

Python runs in your browser and checks your answer right away. Hints and the answer are on the problem page.