title: How do I open another Python file within a file with a parameter/argument/variable attached?
body: <p>I want to run another file from my main.py and also set the value of a variable in the main.py and &quot;export it&quot;, so I can use it in the other file.
  But I absolutely don´t know how to do that.
  So that I can set a 'var = x[3]' in the main file and kinda &quot;export&quot; the variable into the file that I am opening like 'import otherfile.py(var = x[3])'</p>
  <p>Thanks in advance</p>