I need to convert a string to a variable name of a tuple and therefor i dont want to do it with a dictionary. I need to do it on python, I've searched already over the website and on many diffrent sources, and no answer satisfied me yet. I really hope for somthing simple as I hope this task is. Thanks alot to the helpers :)
Asked
Active
Viewed 52 times
0
-
do you need to be able to set the value of the variable? or just retrieve it? – bravosierra99 Oct 20 '16 at 10:57
-
Local or global variable? – martineau Oct 20 '16 at 10:59
-
Do you have anything for us to go on? – OrderAndChaos Oct 20 '16 at 11:00
-
already asked: http://stackoverflow.com/questions/19122345/to-convert-string-to-variable-name-in-python – Mehrdad Dadvand Oct 20 '16 at 11:02
-
local var, set value. – Itay Braha Oct 20 '16 at 11:36
-
If you look at the questions linked as duplicate, there are ways that appear to do what you want, but if not, then you really need to edit the question to explain what you're trying to do and not just point out that you don't want to do it in a dictionary (especially since there's no explanation to your "therefor[e]" – Foon Oct 20 '16 at 17:32