Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from LoginDetails import username1, password1,username2, password2
- import sys
- loop1 = True
- while(loop1 == True):
- usernameinput = input("Enter Your Username: ")
- if usernameinput == username1 or usernameinput == username2:
- passwordinput = input("Please Enter Your Password: ")
- if passwordinput == password1 or passwordinput == password2:
- print("Logged In Succesfully as " + usernameinput)
- loop1 = False
- loop2 = True
- while(loop2 == True):
- command = input(usernameinput + " {} > > ")
- if(command == "logout" or command == "Logout" or command == "exit" or command == "Exit"):
- loop2 = False
- loop1 = True
- else:
- print(command + " is not a valid command type help to see a list of commands!")
- else:
- print("Wrong Password!")
- else:
- print("Username Dosnt Exist On The Database")
- print (exit(0))
- ----------------------------------------------------------------------------------------------------------------------------
- username1 = "Alex"
- password1 = "Hello"
- username2 = "Myles"
- password2 = "Password"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement