i have two dictionary
dict1 = {
"abc": sm.xyz.cdd(),
"def": sm.acf.fdr(),
"ghi": sm.rty.qsd(),
}
I need to create a function that takes 2 parameters 1st is the key of dict1 and 2nd parameter would be a string and i want the output
fun("abc", "log")
# then this must be my output
sm.xyz.cdd("log")
dict1={"abc":sm.xyz.cdd, ...}(no parenthesis), otherwise you already calling a function. As for the function, what have you tried so far to implement it?