Advertisement
Guest User

Arijanit Hoti Python

a guest
Jun 20th, 2017
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.76 KB | None | 0 0
  1. username = input("Insert Username")
  2. password = input("Insert Password")
  3. correctpassword = "123123"
  4. correctusername = "chicken"
  5. isUsernameTrue = False
  6. isPasswordTrue = False
  7. hiddenpassword = "*" * len(correctpassword)
  8.  
  9. if username == correctusername:
  10.    isUsernameTrue = True
  11. else:
  12.   isUsernameTrue = False
  13.  
  14. if password == correctpassword:
  15.    isPasswordTrue = True
  16. else:
  17.    isPasswordTrue = False
  18.    
  19. if isUsernameTrue and isPasswordTrue == True:
  20.   print("Access Granted")
  21. else:
  22.   print("Access Denied")
  23.  
  24. optionselection = input("Type in the option you would like to access respectively : DATA, ACCOUNT SETTINGS")
  25.  
  26. if optionselection == "ACCOUNT SETTINGS":
  27.   print("Current Username" , correctusername)
  28.   print("Current Password : " , hiddenpassword)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement