Answers for "pass dict to kwargs"

14

python dict to kwargs

func(**{'type':'Event'})

# ^ is equivalent to v

func(type='Event')
Posted by: Guest on May-13-2021

Python Answers by Framework

Browse Popular Code Answers by Language