database = [
{'user','123'},{'admin','456'}
]
what the hell are you even
users = (
('user', '123'),
('admin', '456')
)
or just use a list of instances of an "User" class
value = 1
while value == 1:
.. why 1
have you never heard of booleans
value = Trueand what kind of a variable name is
value; why not something like
run?
while value == 1:
please don't be the person who writes this kind of thing:
while len(items) is not 0:when you can just do this:
while items: time.sleep(1)
why these delays
if {user,password} in database:
I haven't studied Python 3 that much but I'm pretty sure that making sets with {} only works in "inline generators"
unless you were trying to make a tuple/list, which is probably the case, but this would be invalid
value == 2
uhm
what
you're comparing value to 2 as a statement
even if you were trying to set it, why would you be doing this
break would already end the loop, no need to change
value//Fixed
what
this is invalid comment syntax