I'm wondering whether it is possible to select a variable based on a certain condition/input.
For example:
day_1 = 5
day_2 = 10
day_3 = 15
i =2
selected_variable = day_i
The code would give an error that of course day_i is not defined. I know I could add all variables to a list and access them through list locations etc but I'm working with a rather big Simpy environment in which this would be very useful if it exists.
Thanks!