title: Create dictionary from list of variables
body: <p>I'm looking for a way to create a dictionary without writing the key explicitly.
  I want to create a function that gets the number of variables and creates a dictionary where the variable names are the keys and their values are the variable values.</p>
  <p>Instead of writing the following function:</p>
  <pre><code>def foo():
      first_name = &quot;daniel&quot;
      second_name = &quot;daniel&quot;
      id = 1
      return {'first_name':first_name, 'second_name':second_name}
  </code></pre>
  <p>I want to get the same result with function :</p>
  <pre><code>create_dict_from_variables(first_name, second_name)
  </code></pre>
  <p>Is there any way to do so?</p>