Im new to python and programming in general and I came across this problem while fiddling around with a simple while loop. The loop takes input to evaluate two possible passwords:
print('Enter password')
passEntry = input()
while passEntry !='juice' or 'juice2':
print('Access Denied')
passEntry = input()
print(passEntry)
print('Access Granted')
It doesnt seem to be accepting juice or juice2 as valid.
Also just accepting one password like:
while passEntry != 'juice' :
will not work, while:
while passEntry !='juice' :
works fine. I cant seem to find the reason for these issues (Only difference between the latter two is the space after the =). Any help is appreciated.