ASK - ANSWER - COMMENT - VOTE - CREATE
Course: Become a Great Entrepreneur | Join the MathsGee Club | Create your Quiz | Ask your Question
We can also use the **kwargs syntax in a Python function declaration. It let us pass N (variable) number of arguments which can be named or keyworded.
Example of using the **kwargs:
# Python code to demonstrate
# **kwargs for dynamic + named arguments
for emp, age in kwargs.items():
print ("%s's age is %s." %(emp, age))
fn(John=25, Kalley=22, Tom=32)
John's age is 25.
Kalley's age is 22.
Tom's age is 32.
MathsGee provides answers to subject-specific educational questions for improved outcomes.
On MathsGee Answers, you can:
1. Ask questions
2. Answer questions
3. Comment on Answers
4. Vote on Questions and Answers
5. Donate to your favourite users