Answers for "python open a dictionary as keyword arguments"

0

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)
Posted by: Guest on April-04-2021
0

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)
Posted by: Guest on April-04-2021

Code answers related to "python open a dictionary as keyword arguments"

Python Answers by Framework

Browse Popular Code Answers by Language