E they take two sub expressions exp1 and exp2 is true

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: s   Like “==“ which we saw before   Also known as relaGonal operators 12 4 13 ­09 ­16 Comparisons in Python • Python allows the familiar value comparisons: • Recall that these are expressions, which means they always evaluate to a value (which can be only true or false), and they have a type 13 Boolean expressions • We can combine Boolean expressions using and and or • These are binary operators (i.e., they take two sub ­ expressions):   EXP1 and EXP2 is True if and only if both Exp1 and Exp2 are true   EXP1 or EXP2 is True if any of Exp1 and Exp2 is true (or...
View Full Document

This document was uploaded on 03/02/2014.

Ask a homework question - tutors are online