title: Get hold of variable value combining two strings
body: <p>I would like to have dynamic parameters for a API im using.
  For that im searching for a easy way to achive the following:</p>
  <pre><code>def __init__(self):
      self.search_param_list = [from, to]
      self.from = A
      self.to = B
  
  def search_params2(self):
      parameters = {parameter: self.parameter for parameter in self.search_param_list}
      return parameters
  </code></pre>
  <p>The output is expectet to look something like this:</p>
  <pre><code>parameters ={&quot;from&quot;: A, &quot;to&quot;: B}
  </code></pre>
  <p>I do this to change the params in the init if wanted, but that i dont have to do it if not nessesary.</p>