action on in larger statement and program true > true = true ! false less than greater than or equalmixed-type converted to equal value not equal value notice again how mixed types are allowed in numeric expressions (only)in the second test herepython compares values in terms of the more complex typefloat interestinglypython also allows us to chain multiple comparisons together to perform range tests chained comparisons are sort of shorthand for larger boolean expressions in shortpython lets us string together magnitude comparison tests to code chained comparisons such as range tests the expression ( )for instancetests whether is between and cit is equivalent to the boolean test ( and cbut is easier on the eyes (and the keyboardfor exampleassume the following assignmentsx the following two expressions have identical effectsbut the first is shorter to typeand it may run slightly faster since python needs to evaluate only oncex true and true chained comparisonsrange tests the same equivalence holds for false resultsand arbitrary chain lengths are allowedx false false true false you can use other comparisons in chained testsbut the resulting expressions can become nonintuitive unless you evaluate them the way python does the followingfor instanceis false just because is not equal to = false same as = and not same asfalse (which means which is true!numbers in action