I'm having a strange issue taking in user input, appending a list with the correct information, and checking the list for the correct input.
For some reason, only entering 'pally' calls end_instance.enter()
(without 'polly').
def enter(self):
print """Please enter your two passwords to proceed. Check the other doors for answers. You have five guesses."""
green_count = 0
green_ans = []
while green_count < 5:
green_guess = (raw_input('> '))
if 'polly' or 'pally' in green_guess:
green_ans.append(green_guess)
green_count += 1
if 'polly' and 'pally' in green_ans:
print "cool"
end_instance.enter()
else:
print "try again"
green_count += 1