INFO1110 Lecture Notes - Lecture 9: Order Of Merit
Document Summary
The basic mathematical operators are: + add, - subtract, * multiply, / divide print(6 + 4) print(6 - 4) print(6 * 4) print(6 / 4) We also have: % modulo/modulus, // oor divide print(6 % 4) print(6 // 4) Values on the left are assigned values on the right. x = 10 print(x) In the code above, the value 10 is being assigned to the variable x. The variable x is then evaluated before it is passed into the print function.