Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

kwargs in python

def display(**kwargs):
    d = {k.upper():v.upper() for k,v in kwargs.items() }
    return d
   
d = {"name":"neo","age":"33","city":"tokyo"}
print(display(**d))
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #kwargs #python
ADD COMMENT
Topic
Name
7+8 =