title: Python: Returns a value of variable for a variable that comes as parameter of function
body: <p>I have a list of statements</p>
  <pre><code>a = &quot;hello&quot;
  b = &quot;hi&quot;
  c= &quot;test&quot;
  </code></pre>
  <p>In a program I got variable name(a,b or c) and need to return value of variable using that function method.</p>
  <pre><code>def my_method(item):
       a = &quot;hello&quot;
       b = &quot;hi&quot;
       c= &quot;test&quot;
      
  </code></pre>
  <p>item parameter will be either a , b or c and I need to return value of that item. Is there any technique to return item value without if condition for three statement?</p>