python evaluate functions with parameters given by a dictionary -
with python how can evaluate dictionary of functions associate parameters. more specific, keys functions , values list of paramters.
for example, consider dictionary:
{f1: [a, b, c], f2: [q], f3: [5, c]}
how iterate on functions compute:
f1(a, b, c) f2(q) f3(5, c)
alternately:
for key in dct: key(*dct[key])
Comments
Post a Comment