title: Using a variable in the code -> from variableX import abc - Python
body: <p>I am working on my python code in which I cannot figure out how to use a variable named 'x1' in the following line -</p>
  <p>'''</p>
  <pre><code>import sys
  
  x_1 = 'file_name'
  sys.path.insert(0, r'C:\Users\user\Desktop\file2')
  
  from x_1 import main
  main()
  </code></pre>
  <p>'''</p>
  <p>The place where I want to use the variable is in the place -&gt;
  from <em><strong>x1</strong></em> import main</p>
  <p>It is giving an error that the module is not found. Please help me insert a variable in the place.</p>