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))