title: display how much time is left until shutdown
body: <pre><code>import time as t
  import os
  
  print("Timed Shutdown")
  run = int(input("Please enter a shutdown time in minutes: "))
  run *= 60
  while run != 0:
      run -= 1
      t.sleep(1)
      print("Your system willl close in:", str(int(run/60)), "minutes")
  
  os.system("shutdown -s")
  </code></pre>
  
  <p>I'm trying to make a program that shuts down the computer after a specific time entered in minutes by the user. I would like to make the print statement from inside the while loop to be seen by the user only after a minute has passed ( or after <code>t</code> time).</p>