A variables variables

Gandalf goldnery at gmail.com
Sat Aug 23 20:25:23 EDT 2008


how can I declare a variable with another variable  name?

for example  I will use PHP:

$a= "hello";

$a_hello="baybay";

print ${'a_'.$a)  //output: baybay


how can i do it with no Arrays using  python

thanks!



More information about the Python-list mailing list