Advertisement
major_dispute

Untitled

Nov 7th, 2018
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.90 KB | None | 0 0
  1. A = 0
  2. coreRun = 0
  3. #users = ''
  4. #names = ''
  5. #userArray = []
  6. #currentUsers = []
  7. totalUserCount = 3
  8. pos = ["True","true","yes","Yes","Y","y"]
  9. inc = ["False","false","no","No","N","n"]
  10. def getUsers():
  11. global users, names, userArray #variables
  12. with open("users.txt","r+") as users:
  13. userArray = users.readlines()
  14.  
  15. getUsers()
  16. for totalUserCount in userArray:
  17. userArray[A] = totalUserCount.strip("\n")
  18. a =+ 1
  19.  
  20. #userSplit = str(userArray)
  21. #splitUsers = userSplit.split(";")
  22.  
  23. core = input("Returning user?")
  24. if core in pos:
  25. logon = input("Please enter your username:")
  26. if logon in userArray:
  27. print("This is a present user. Please input the password associated with this user:")
  28. else:
  29. print("That is not a current user")
  30. if core in inc:
  31. print("Let's create a user.")
  32. print("Input a username and a password:")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement