Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- A = 0
- coreRun = 0
- #users = ''
- #names = ''
- #userArray = []
- #currentUsers = []
- totalUserCount = 3
- pos = ["True","true","yes","Yes","Y","y"]
- inc = ["False","false","no","No","N","n"]
- def getUsers():
- global users, names, userArray #variables
- with open("users.txt","r+") as users:
- userArray = users.readlines()
- getUsers()
- for totalUserCount in userArray:
- userArray[A] = totalUserCount.strip("\n")
- a =+ 1
- #userSplit = str(userArray)
- #splitUsers = userSplit.split(";")
- core = input("Returning user?")
- if core in pos:
- logon = input("Please enter your username:")
- if logon in userArray:
- print("This is a present user. Please input the password associated with this user:")
- else:
- print("That is not a current user")
- if core in inc:
- print("Let's create a user.")
- print("Input a username and a password:")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement