title: How do I import variable packages in Python like using variable variables ($$) in PHP?
body: <p>I want to import some package depending on which value the user chooses.</p>
  
  <p>The default is <code>file1.py</code>:</p>
  
  <pre class="lang-py prettyprint-override"><code>from files import file1
  </code></pre>
  
  <p>If user chooses <code>file2</code>, it should be :</p>
  
  <pre class="lang-py prettyprint-override"><code>from files import file2
  </code></pre>
  
  <p>In PHP, I can do this using <a href="http://php.net/manual/en/language.variables.variable.php" rel="noreferrer">variable variables</a>:</p>
  
  <pre class="lang-php prettyprint-override"><code>$file_name = 'file1';
  include($$file_name);
  </code></pre>
  
  <pre class="lang-php prettyprint-override"><code>$file_name = 'file2';
  include($$file_name);
  </code></pre>
  
  <p>How can I do this in Python?</p>