title: Simple Python Coding: How do I use text files as variables?
body: <p>How can I make changeable variables in other files via my primary Python file, then change them?</p>
  
  <p>I want to be able to make a change in my main python file, and then have it carry over into the text file.</p>
  
  <p>Here is an example:</p>
  
  <pre><code>##this is inside the text file##
  gold = 10
  </code></pre>
  
  <p>Then in my code.</p>
  
  <pre><code>##this is inside the code##
  money = gold
  ##I want that variable 'gold' to draw information from the txt file##
  </code></pre>
  
  <p>Then when I run my module.</p>
  
  <pre><code>##this is what I see when in the module##
  &gt;&gt;money
  money = 10
  &gt;&gt;add money
  How much?
  &gt;&gt;10
  total money = 20
  </code></pre>
  
  <p>Then when I do that, it changes the text file</p>
  
  <pre><code>##this is inside the text file##
  gold = 20
  </code></pre>
  
  <p>Also, what is pickling?</p>