Function Indo
Function Indo
Python Functions
my_function()
Arguments
my_function("Emil")
my_function("Tobias")
my_function("Linus")
Arbitrary Arguments, *args
You can also send arguments with the key = value syntax.
This way the order of the arguments does not matter.
def my_function(child3, child2, child1):
print("The youngest child is " + child3)
Return Values
print(my_function(3))
print(my_function(5))
print(my_function(9)) 1515
25
45
The pass Statement