Python
Passing arguments through function using args and kwargs
args take non keyworded arguments, while kwargs take keyworded arguments.
def act1(*args, **kwargs):
print(args)
print(kwargs)
act1(5,10,15,vehicle="Car",job="Doctor",country="India")
Output
(5, 10, 15)
{'vehicle': 'Car', 'job': 'Doctor', 'country': 'India'}