Skip to content

Instantly share code, notes, and snippets.

@xeldrago
Last active May 10, 2020 22:06
Show Gist options
  • Save xeldrago/9a8508dba86616e6b4ecb2559d481529 to your computer and use it in GitHub Desktop.
Save xeldrago/9a8508dba86616e6b4ecb2559d481529 to your computer and use it in GitHub Desktop.
try:
users = {}
status = ""
def displayMenu():
global status
global users
status = input("are u known y/n? press q to get out---")
if status == "y":
oldUser()
elif status == "n":
newUser()
elif status == "q":
return
else:
print("u do not belong here")
def newUser():
print("before creating your new account,give us your new user name")
logingname=input("here:")
if logingname in users.get('createLogin','none'):
print("\nit already existing ,choose another!\n")
else:
users['createLogin'] = input("create login name:")
users['createPassw'] = input("Create password: ")
print("\nUser created\n")
def oldUser():
login = input("Enter login name: ")
passw = input("Enter password: ")
if login in users['createLogin'] and passw in users['createPassw']:
print("\nyour in, now go hafun exiting\n")
else:
print("\nur not known here jus get out\n")
while status != "q":
displayMenu()
#break
print("ur out of the login system ,die")
except:
print("invalid")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment