Jul 18, 2023
Variable Length Arguments in Python
*Video Link:-
https://youtu.be/svDIG-Zsddk
Details:-
In this tutorial, we are using **kwargs argument to pass infinite variable length arguments at runtime.
Here **means unpacked compressed dictionary of parameters.
Coding:-
def function(**kwargs):
for key, value in kwargs.items():
print(key, ':', value)
#call the function
function(x:1, y:5, z:9)
*Hashtags:-
#python #coding #programming #dictionary #tutorial