Error


#1

Hi everyone, I hope you guys all have a really great weekend.
I have a question about my work, the result comes out wrongly when I enter the value. I don’t know why. it keeps saying invalid for the output!
Any help is great. Thank you so much!


#2
if answer == 1 and answer == 2 and answer == 3

That’s the start of your problems.
answer simply can’t be 1 AND 2 AND 3 at the same time
so your condition will never be true, thus the else code gets executed.

answer could be 1 OR 2 OR 3 though


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.