Posted By

louscomp on 12/17/09


Tagged

password python console


Versions (?)

What is the password?


 / Published in: Python
 

Enter your password to continue.

  1. clave = "key"
  2. respuesta = raw_input("What is the password?\n")
  3. while clave != respuesta:
  4. print "Incorrect"
  5. respuesta = raw_input("What is the password?\n")
  6.  
  7. print "Correct"
  8. raw_input()

Report this snippet  

You need to login to post a comment.