I am new to the Python language.

How do I do something like this:

I know that

    a = 3
    y = "a"
    print eval(y)

would give me a print out of 3 - but how do I do something to the effect of:

    eval(y) = 4    # hopefully the value of a gets changed to 4

??

Thanks,

--
It's me


-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to