Answers for "what is *args **kwargs in python"

27

args kwargs python

>>> def argsKwargs(*args, **kwargs):
...     print(args)
...     print(kwargs)
... 
>>> argsKwargs('1', 1, 'slgotting.com', upvote='yes', is_true=True, test=1, sufficient_example=True)
('1', 1, 'slgotting.com')
{'upvote': 'yes', 'is_true': True, 'test': 1, 'sufficient_example': True}
Posted by: Guest on July-16-2020

Code answers related to "what is *args **kwargs in python"

Python Answers by Framework

Browse Popular Code Answers by Language