Default parameter values

def f(a, b=2): return a * b → f(5) = 10

You can also choose a level by clicking its number.

About the course

Description
A function with a parameter that has a default value, and calls with keyword arguments
More information
Short programs in Python – what they calculate and what they print.
Sample question
def f(a, b=2): return a * b → f(5) = 10
Author
Jiří Preisler
Version
1.0