help me
Marius Bernklev
mariube+netnews+ at ifi.uio.no
Sat Oct 9 17:47:09 EDT 2004
chrispatton at gmail.com (Chris Patton) writes:
> Hey everybody. I am writing a program that requires the user to make
> the name for variables inside the program. For example:
>
>>>> exec raw_input()+' = 34'
>
> However, I don't want to have to use the "exec" statement. Thanks for
> any help!
Are you sure you don't want to use a plain dict for this? And if so, why?
--
Marius Bernklev
<URL: http://www.ping.uio.no/~mariube/ >
More information about the Python-list
mailing list