title: Python: Resetting a variable
body: <p>For the below code, after running <code>start_point = start_point / 10</code>, its value drops to 1,000 and would remain as such if it is called subsequently.</p>
  
  <p>May I know how to reset it to the 10,000 it originally was? I believe one method would be to set a global variable. But is there a simpler way? Like a <code>seek(0)</code>?</p>
  
  <pre><code>def secret_formula(started):
      jelly_beans = started * 500                 
      jars = jelly_beans / 1000                   
      crates = jars / 100                         
      return jelly_beans, crates, jars                
  
  start_point = 10000
  item_1, item_2, item_3 = secret_formula(start_point)
  
  print "With a starting point of: %d" % start_point
  print "We'd have %d beans, %d jars, and %d crates." % (item_1, item_2, item_3)
  
  start_point = start_point / 10
  
  print "We can also do that this way:"
  print "We'd have %d beans, %d jars, and %d crates." % secret_formula(start_point)
  </code></pre>