d1 = {
"a": "test"
}
cmd_dict = {
"cmd1": "d1['a']",
"cmd2 : "os.getcwd()"
}
value = eval(md_dict['cmd1])
print(value)
Not i will get the value as test.
I am getting pylint error W0123 becasue i am using eval. is there any way to perform the same without using eval.