I do not understand your answer. If I read the question correctly, either both FULL and EMPTY or False, or one of them is true. If that is correct, then I don’t understand your expression.

Thanks, Charlie Weston

I do not understand your answer. If I read the question correctly, either both FULL and EMPTY or False, or one of them is true. If that is correct, then I don’t understand your expression.

Thanks, Charlie Weston

Hi Charlie,

In English, when you say “either A or B”, that usually means you can pick A, or you can pick B, but you have to choose only one of them. The “either” suggests you can’t pick both.

So “either A or B” is equivalent to “A or B, but not both A and B”. That translates into `(A or B) and not (A and B)`

. Generally, you can substitute “and” for “but” when translating English into Python.

Hope this helps!

You must be logged in to comment