title: My program stop if user click the console, how do I prevent it?
body: <p>How do I prevent the program from stopping when the user press the console?</p>
  
  <p>For example:
  <a href="https://i.stack.imgur.com/BGqih.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/BGqih.png" alt="enter image description here"></a></p>
  
  <p>I'm trying to create a loop in python where it's printing out number from 0-1000, but when the user click the console, it stopped</p>
  
  <p>How do I prevent this?</p>
  
  <p>I can't find a site or any stackoverflow answer, what I get is only in <code>c#</code> language. I want a <code>python</code> language</p>
  
  <p>Here is a similar problem in <code>c#</code> <a href="https://stackoverflow.com/questions/39250218/code-stops-executing-when-a-user-clicks-on-the-console-window">Code stops executing when a user clicks on the console window</a></p>
  
  <p>The problem was not on the code, because the code is</p>
  
  <pre><code>for i in range(1000):
   print(i)
  </code></pre>
  
  <p>EDITED: I want to make the Quick-Edit disabled in python code?</p>