Feb-20-2021, 04:43 AM
You're looping on
Instead of saving the result of the username/password inputs, you're passing it to print(). Then you append the result of the print() to the users and passwords list. But the result of print() is always None, so the users and passwords are lost.
This section:
toggleonoff
, but you never change it. Might as well just do a while True: loop.Instead of saving the result of the username/password inputs, you're passing it to print(). Then you append the result of the print() to the users and passwords list. But the result of print() is always None, so the users and passwords are lost.
This section:
x = 0 for user in users: if user == loguser: print("test123") elif x > len(users): break x=x+1Could probably be better written as
if loguser in users: print("test123")