Advertisement
Guest User

Untitled

a guest
Dec 7th, 2017
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.29 KB | None | 0 0
  1. LOGIN = {'bob':'123',
  2. 'ann':'pass123',
  3. 'mike':'password123',
  4. 'liz': 'pass123'
  5. }
  6. count = 0
  7. while count < 2:
  8.     user = input('USERNAME: ')
  9.     password = input('PASSWORD: ')
  10.     if user in LOGIN:
  11.         print('Good')
  12.         count = 2
  13.     else:
  14.         print('Denied')
  15.         count = 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement