Advertisement
Guest User

Untitled

a guest
Sep 20th, 2017
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.48 KB | None | 0 0
  1. User_Name = raw_input('what is your desired user name?: ')
  2. password = raw_input('what is your desired password?: ')
  3. loggedIn = False
  4. numTries = 0
  5. print ''
  6. print 'now to unlock the system'
  7.  
  8.  
  9. while numTries <= 3 and loggedIn == False:
  10.     inputtedName = raw_input('Enter your username: ')
  11.     inputtedPass = raw_input('Enter your password: ')
  12.     if inputtedName == User_Name and inputtedPass == password:
  13.         print 'Congratulations, you logged in!'
  14.         loggedIn = True
  15.     else:
  16.         numTries += 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement