python open a dictionary as keyword arguments code example
Example: python open a dictionary as keyword arguments
def test_func(a = 4, b = 5):
print("The value of a is : " + str(a))
print("The value of b is : " + str(b))
# initializing dictionary
test_dict = {'a' : 1, 'b' : 2}
# Passing dictionary as keyword arguments
# Using ** ( splat ) operator
print("The function values with splat operator unpacking : ")
test_func(**test_dict)