Functions with Arguments¶
Functions can have arguments to parametrize them. Arguments are listed after the opening brace.
Example with single argument:
def hello(to):
print("Hello", to)
hello("World")
hello("Björn")
Example with two arguments:
def say(what, to):
print(what, to)
say("Hello", "World")
say("Moin", "Björn")