title: Is it bad practice to import a file from inside itself?
body: <p>Essentially, I have a program that will run forever until my user suggests that they wish to leave, at which point it terminates.</p>
  
  <p>Example Code: (example.py)</p>
  
  <pre><code>print("This is an example!")
  if input("Want to leave?") != "No":
      import example
  </code></pre>
  
  <p>Of course, my code is much more complicated than this, but this demonstrates the purpose.</p>
  
  <p>I know I could use a 'while' loop with a condition but personally speaking, this method looks neater (but I don't know if it's <code>python</code>ic).</p>
  
  <p><strong>My question: What are the downsides of this? Is this discouraged or good practice?</strong></p>
  
  <p>Reasons for downsides would be appreciated :)</p>