title: Is there anyway to use value stored in variable as a key for searching another variable of a Class?
body: <p>Currently I am working on a selenium project which I am integrated with Jenkins.I have stored Locators in a class. So my target is to take input from jenkins and use that variable as a key to get value from the </p>
  
  <pre><code>class Locators(object):
      rundate = 'PREV' # This value is user input, either PREV or NOW
      PREV = 'abcd'
      NOW  = 'bcd'
  </code></pre>
  
  <p>So I want to use it as:</p>
  
  <p><code>Test = Locators()
  Test.(Test.rundate)</code></p>