Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

**kwargs in Python

def myFun(arg1, **kwargs):
    for key, value in kwargs.items():
        print("%s == %s" % (key, value))
 
 
# Driver code
myFun("Hi", first='Geeks', mid='for', last='Geeks')
Source by www.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged: #Python
ADD COMMENT
Topic
Name
3+2 =