Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- User_Name = raw_input('what is your desired user name?: ')
- password = raw_input('what is your desired password?: ')
- numTries = 0
- print ''
- print 'now to unlock the system'
- while numTries != 3:
- inputtedName = raw_input('Enter your username: ')
- if inputtedName == User_Name:
- inputtedPass = raw_input('Enter your password: ')
- else: numTries +=1
- if inputtedName == User_Name and inputtedPass == password:
- print 'Congratulations, it worked!'
- if numTries == 3:
- print "you have failed too many times, sorry"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement