variablesexpressionsand statements exponentiation has the next highest precedenceso ** + is not and * ** is not ultiplication and division have the same precedencewhich is higher than addition and subtractionwhich also have the same precedence so * - is not and + / is not operators with the same precedence are evaluated from left to right so the expression is not because the - happens first and then is subtracted from when in doubtalways put parentheses in your expressions to make sure the computations are performed in the order you intend modulus operator the modulus operator works on integers and yields the remainder when the first operand is divided by the second in pythonthe modulus operator is percent sign (%the syntax is the same as for other operatorsquotient / print(quotient remainder print(remainder so divided by is with left over the modulus operator turns out to be surprisingly useful for exampleyou can check whether one number is divisible by anotherif is zerothen is divisible by you can also extract the right-most digit or digits from number for examplex yields the right-most digit of (in base similarlyx yields the last two digits string operations the operator works with stringsbut it is not addition in the mathematical sense instead it performs concatenationwhich means joining the strings by linking them end to end for examplefirst second print(first+second first '