title: Call class method via variable name in python
body: <p>How I can call class method via variable name, example:</p>
  <pre><code>def http_call(http_method):
   url = &quot;https://httpbin.org/get&quot;
   response = requests.http_method(url)
   return response
  
  http_call(&quot;get&quot;)
  http_call(&quot;post&quot;)
  </code></pre>
  <p>Thanks beforehand.</p>