title: Python selecting variables based on condition
body: <p>I'm wondering whether it is possible to select a variable based on a certain condition/input.</p>
  
  <p>For example:</p>
  
  <pre><code>day_1 = 5
  day_2 = 10
  day_3 = 15
  i =2
  selected_variable = day_i
  </code></pre>
  
  <p>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.</p>
  
  <p>Thanks!</p>