**kwargs argument in python

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

Computer Coding Class

Computer Coding Class
Computer Coding Class

Written by Computer Coding Class

It is a YouTube Channel to learn Computer Coding and Programming in different famous Programming languages like C++, Python, Java from scratch to advanced leveI

No responses yet