I'm working with Python 2.6 here. Perhaps my title is misleading. So I will explain here. I tried my best to search for a solution, but since I'm rather new I have no clue what to search.
Essentially, I'm getting an input string value from the user, and I wish to do the following:
Let's say
x=['reg1','reg2','reg3']
I want to write:
for reg in x:
display_value.reg
Such that python reads the following for every iteration:
display_value.regX
and NOT:
display_value.'regX'