I have a function f(x) in which many local variables are created. x is a string with the same name as one of these local variables and I would like
f(x)
x
use dictionary like this:
def f(x): d = {"a" :[1,2,3],"b" : [2,3,4],"c" : [3,4,5]} d[x][0] = 10 return d