if statements conditional operators the comparison operators are ==>=<=and !that last one is for not equals here are few examplesexpression description if > if is greater than if >= if is greater than or equal to if == if is if != if is not there are three additional operators used to construct more complicated conditionsandorand not here are some examplesif grade>= and grade< print'your grade is 'if score> or time> print'game over 'if not (score> or time> )print'game continues 'order of operations in terms of order of operationsand is done before orso if you have complicated condition that contains bothyou may need parentheses around the or condition think of and as being like multiplication and or as being like addition here is an exampleif (score and turns_remaining== print'game over ' common mistakes mistake the operator for equality consists of two equals signs it is really common error to forget one of the equals signs incorrect correct if = if == mistake common mistake is to use and where or is needed or vice-versa consider the following if statementsif > and < if > or <