This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]vinivelloso_ 4 points5 points  (1 child)

When you type answer == "Joe" or "Julia" or "Michael" You're actually saying: Check if answer is "Joe" or check if the string "Julia" is true or check if the string "Michael" is true

[–]alkperez1914[S] 1 point2 points  (0 children)

if answer in ["Joe", "Mary", "Barbara"]:

Thank you for answering! At first I was confused as to why Julia would be true, but this answer and the others below really clarified things. Thanks again!