title: Python program works from command prompt but does not work when opened in Windows
body: <p>I am working on a very simple python program that is basically a password entry screen. Everything is working as it should and the program runs correctly when I execute through the command prompt on Windows (python login.py). However, if I run the program by double clicking it, it takes me as far as the "Enter password: " input and as soon as I hit enter with my desired password, it gives this error:</p>
  
  <p>NameError: name 'pass' is not defined.</p>
  
  <p>How do I go about fixing this error?</p>
  
  <pre><code>import time
  
  print("You have ten seconds to enter the password.")
  time.sleep(1)
  print("Or this computer will shut down.")
  password = input("Enter password: ")
  
  while 1:
      if password == "pass":
          print("Login successful.")
          break
      else:
          password = input("Enter password: ")
  </code></pre>