Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

what are args and kwargs in python

# Python program to illustrate   
# **kwargs for variable number of keyword arguments 
  
def info(**kwargs):  
    for key, value in kwargs.items(): 
        print ("%s == %s" %(key, value)) 
  
# Driver code 
info(first ='This', mid ='is', last='Me')     
Source by www.interviewbit.com #
 
PREVIOUS NEXT
Tagged: #args #kwargs #python
ADD COMMENT
Topic
Name
3+3 =