Functions with default Arguments¶
It is possible to define default values for function arguments.
Example:
def say(to, what="Hello"):
print(what, to)
say(to="World")
say(to="Björn", what="Moin")
It is possible to define default values for function arguments.
Example:
def say(to, what="Hello"):
print(what, to)
say(to="World")
say(to="Björn", what="Moin")