title: Functions not executing in Python
body: <p>I have a program that runs when the functions have not been defined. When I put code into a function, it does not execute the code it contains. Why? Some of the code is:</p>
  <pre><code>def new_directory():
  
      if not os.path.exists(current_sandbox):
          os.mkdir(current_sandbox)
  </code></pre>