Advertisement
Guest User

Untitled

a guest
Jan 7th, 2018
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.72 KB | None | 0 0
  1. #ask the user to create an account, and log in with correct information
  2. import time
  3.  
  4. print("Would you like to create an account?")
  5. user_input = input()
  6.  
  7. if user_input == 'yes':
  8.     print("Enter a username: ")
  9.     user_name = input()
  10.     print("Enter a password: ")
  11.     user_pass = input()
  12.     print("Login using existing information")
  13.     print("Username: ")
  14.     confirm_user = input()
  15.     if confirm_user == user_name:
  16.         print("Password: ")
  17.         confirm_pass = input()
  18.         if confirm_pass == user_pass:
  19.             print("Please wait, redirecting...")
  20.     else:
  21.         print("Username or Password incorrect.")
  22.  
  23. else:
  24.     print("You must create an account to continue browsing.")
  25.  
  26.    
  27.  
  28. time.sleep(5)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement