xthe latter of these options is removed because it is redundant in either versionbest practice is to use ! for all value inequality tests in python xa backquotes expression `xworks the same as repr(xand converts objects to display strings due to its obscuritythis expression is removed in python xuse the more readable str and repr built-in functionsdescribed in "numeric display formats the / floor division expression always truncates fractional remainders in both python and the expression performs true division in (retaining remaindersand classic division in (truncating for integerssee "divisionclassicfloorand trueon page the syntax is used for both list literals and list comprehension expressions the latter of these performs an implied loop and collects expression results in new list see and for examples the syntax is used for tuples and expression groupingas well as generator expressions-- form of list comprehension that produces results on demandinstead of building result list see and for examples the parentheses may sometimes be omitted in all three contexts the syntax is used for dictionary literalsand in python and for set literals and both dictionary and set comprehensions see the set coverage in this as well as and for examples the yield and ternary if/else selection expressions are available in python and later the former returns sendarguments in generatorsthe latter is shorthand for multiline if statement yield requires parentheses if not alone on the right side of an assignment statement comparison operators may be chainedx produces the same result as and see "comparisonsnormal and chainedon page for details in recent pythonsthe slice expression [ : :kis equivalent to indexing with slice objectx[slice(ijk)in python xmagnitude comparisons of mixed types are allowedand convert numbers to common typeand order other mixed types according to type names in python xnonnumeric mixed-type magnitude comparisons are not allowed and raise exceptionsthis includes sorts by proxy magnitude comparisons for dictionaries are also no longer supported in python (though equality tests are)comparing sorted(adict items()is one possible replacement we'll see most of the operators in table - in action laterfirstthoughwe need to take quick look at the ways these operators may be combined in expressions numeric types