I cannot make out why the answer to this is not access denied. The password is defined as 1234, not “admin1234”
Is this an error in the quiz? or am i not understanding the way the boolean logic is working.
Since the username is “admin”, the If statement succeeds (because of the OR operator), so access is granted.
I believe both conditions should be true simultaneously, that’s what the exercise is asking.
I think the question is a simple one of “what does this python code do?” Not a practical question about login security.
Perhaps it’s just a bad example to use in a quiz. I agree with that.