Tuesday 10 July 2018

Returned Value of And Operator

Cited from the book "Python How to Program"

If a combined condition evaluates to false, the and operator returns the first value which evaluated to false. Conversely, if the combined condition evaluates to true, the and operator returns the last value in the condition.

No comments:

Post a Comment