Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

kwargs in python

def display2(a,b,c):
    print("kwarg1:", a)
    print("kwarg2:", b)
    print("kwarg3:", c)

d = {"a": 1, "b": 2, "c": 3}
display2(**d)
Source by www.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged: #kwargs #python
ADD COMMENT
Topic
Name
1+8 =