2.5.1.4 Keyword Arguments
Python Programming
You can call functions using keyword arguments, which makes the code more readable.
Example: Define a function with keyword arguments.
python
def introduce(name , age) :
return "My name is " + name + " and I am " + str(age) + " years old."
print(introduce(age =20, name = "Ali" )) # Output : My name is Ali and I am 20 years old.Explanation: In this example, the introduce function is called using keyword arguments, specifying age first and then name.