introduction to python the =operator is used to test whether two expressions evaluate to the same valueand the !operator is used to test whether two expressions evaluate to different values the symbol is shell prompt indicating that the interpreter is expecting the user to type some python code into the shell the line below the line with the prompt is produced when the interpreter evaluates the python code entered at the promptas illustrated by the following interaction with the interpreter ! true the built-in python function type can be used to find out the type of an objecttype( type( the operators on types int and float are listed in figure + is the sum of and if and are both of type intthe result is an int if either of them is floatthe result is float - is minus if and are both of type intthe result is an int if either of them is floatthe result is float * is the product of and if and are both of type intthe result is an int if either of them is floatthe result is float // is integer division for examplethe value of // is the int and the value of // is the int the value is because integer division returns the quotient and ignores the remainder / is divided by in python when and are both of type intthe result is also an intotherwise the result is float in this bookwe will never use to divide one int by another we will use /to do that (in python the operatorthank goodnessalways returns float for examplein python the value of / is % is the remainder when the int is divided by the int it is typically pronounced " mod ,which is short for " modulo ** is raised to the power if and are both of type intthe result is an int if either of them is floatthe result is float the comparison operators are =(equal)!(not equal)(greater)>(at least)<(lessand <(at mostfigure operators on types int and float the arithmetic operators have the usual precedence for examplebinds more tightly than +so the expression + * is evaluated by first multiplying by and then adding the result to the order of evaluation can be changed by