Originally posted by: Dimmu
Not sure why I didn't think of this sooner, but you can use the exec() function to do, to the best of my knowledge, exactly what you want. For example, "exec('print a[0][0]')", will print a[0][0] to the screen. Assuming of course that a list 'a' exists and the element at '[0][0]' supports indexing and printing, etc. Just replace the print command with whatever it is that you need to do. Much easier, eh?
EDIT: Here's a link to the exec() documentation.
Originally posted by: JTsyo
Thanks!
Originally posted by: degibson
exec ftw.
