I would like to convert an integer to an array name in python. I have no idea whether this is even possible. Help is highly appreciated.
a = int(10)
print a["1"]
Should return >> 10["1"]
I would like to convert an integer to an array name in python. I have no idea whether this is even possible. Help is highly appreciated.
|
|||||||||||||||||||||
closed as unclear what you're asking by Padraic Cunningham, Tom Fenech, vaultah, Lukas Graf, dawg Jul 27 '14 at 17:59Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question. |
|||||||||||||||||||||
|
I don't think even
Though I admit your use case is a little confusing. You may want different list contents. |
|||
|
A variable name can't start with a number. How would you evaluate 10=10? |
|||||||||
|