while.py 158 B

12345678
  1. #!/usr/bin/env python3
  2. # Copyright 2009-2017 BHG http://bw.org/
  3. secret = 'swordfish'
  4. pw = ''
  5. while pw != secret:
  6. pw = input("What's the secret word? ")