0

I have a dictionary with keys and values being parameters and their values:

algo_a = {'a':1, 'b':2, 'c':3}

That I want to pass into a library method.

def my_func(a,b,c,d=4): 
    pass

I want to run something like:

my_func(algo_a)

To run the method with the dictionary keys as parameters. Is there a way to do this?

deceze
  • 510,633
  • 85
  • 743
  • 889
Emil
  • 1,531
  • 3
  • 22
  • 47

0 Answers0