dict_id[id]['a'] = "var 1"
dict_id[id]['a'] = "var 5"
def my_func(*args):
try:
result = eval(args[0])
except SyntaxError:
result = "Всё же самому нужно подумать"
return result
print(my_func("1 + 9"))
print(my_func("100%"))
print(my_func("4**"))
print(my_func("9**3"))