more conditional expressions all the usual arithmetic comparisons may be madebut many do not use standard mathematical symbolismmostly for lack of proper keys on standard keyboard meaning less than greater than less than or equal greater than or equal equals not equal math symbol <>python symbols <>=!there should not be space between the two-symbol python substitutes notice that the obvious choice for equalsa single equal signis not used to check for equality an annoying second equal sign is required this is because the single equal sign is already used for assignment in pythonso it is not available for tests warningit is common error to use only one equal sign when you mean to test for equalityand not make an assignmenttests for equality do not make an assignmentand they do not require variable on the left any expressions can be tested for equality or inequality (!=they do not need to be numberspredict the results and try each line in the shellx = = ! = ! 'hi=' ' 'hi!'hi[ ![ an equality check does not make an assignment strings are case sensitive order matters in list try in the shell' when the comparison does not make sensean exception is caused following up on the discussion of the inexactness of float arithmetic in string formats for float precision (page )confirm that python does not consider to be equal to write simple condition into the shell to test here is another examplepay with overtime given person' work hours for the week and regular hourly wagecalculate the total pay for the weektaking into account overtime hours worked over are overtimepaid at times the normal rate this is natural place for function enclosing the calculation read the setup for the functiondef calcweeklywages(totalhourshourlywage)'''return the total weekly wages for worker working totalhours this is an improvement that is new in python if statements