Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- username = 'g'
- password = 'p'
- user = False
- passw = False
- access = False
- while access == False:
- nameinp = (input("please enter username: "))
- passinp = (input("please enter password: "))
- if nameinp == username:
- user = True
- if passinp == password:
- passw = True
- if user == True and passw == True:
- access = True
- ##PROBLEM SECTION::
- #WONT PRINT THE TRY AGAIN BIT
- else:
- access = False
- while access == False:
- print("incorrect credentials, try again")
- print(access)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement