Python Keyword Arguments
Keyword Arguments
You can also send arguments with the key = value syntax.
This way the order of the arguments does not matter.
Example
def my_function(child3, child2, child1):
print("The youngest child
is " + child3)
my_function(child1 = "Emil", child2 = "Tobias", child3 = "Linus")
Try it Yourself »
The phrase Keyword Arguments are often shortened to kwargs in Python documentations.
Copyright 1999-2023 by Refsnes Data. All Rights Reserved.