Now this is where you might get confused. The above will again compare the value of mugs with the literal value 10. Therefore, if mugs is 5, the above comparison will yield a true result. If mugs is 10, the above will be false. Note, therefore, that if the value of mugs is 10, both comparisons above would yield true.
Logical operators are quite similar in usage to comparison operators.
That will be either true or false. That will also be either true or false. Finally, if the first comparison is true AND the second comparison is true, the logical operation will yield true. If either or both comparisons are false, the whole result is false. It helps a lot to think of these logical comparisons in the context of an English sentence.