Dictionary was generated from config file:
dict_1 = {
'type1' : 'function1()',
'type2' : 'function2()',
'type3' : 'function3()'
}
Variable x contains any key from this dictionary. I tried to call a function as follows:
dict_1[x]
Does anybody know alternative for exec function to run this statement?