Importing and changing variables from another file : <p>Okay...</p>

<p>I have searched and searched looking for an answer that directly answers my question, but have had no success. My problem is pretty straight forward and I honestly thought there would have been a more direct answer out there. Please keep in mind I am still relatively new to the language, and am still learning.</p>

<p><em>So I will use <code>fileA</code> and <code>fileB</code> as my two files, and <code>x</code> as my example variable.</em> Variable <code>x</code> is contained in <code>fileB</code>. How do I go about importing variable <code>x</code> into <code>fileA</code>, <strong>then</strong> change <code>x</code> to another value via <code>raw_input</code>, <strong>and then</strong> have the variable <code>x</code> update in <code>fileB</code> with the new value?</p>

<p>I'm not sure if this is even possible, but I would sure like to think so. I am using python 2.7.11, thank you in advanced.</p>
