title: How to open a terminal to accept user input while running a script in pythonw.exe
body: <p>I am working with <code>Python3.7.0</code> on a <code>Windows 10</code> machine.</p>
  
  <p>I have a program that runs every 5 minutes through task scheduler and if certain parameters are met (it is a given time of day), I require user input. Otherwise, the program is ended.</p>
  
  <p>Every 5 minutes, even if no user input is required, a python window pops open because the program is run through python.exe.</p>
  
  <p>To avoid this problem, is there a way to run the script through pythonw.exe and open a terminal only when user input is required?</p>
  
  <p>The code that I would need would be something that functions as the sudo-code below:</p>
  
  <pre><code>if (conditions are met):
      open terminal window
      run program in terminal window
      close terminal window
  else:
      do nothing
  </code></pre>