Answers
Combines two values to give their total, for example 5 + 7 produces 12.
Splits a value into a given number of equal parts, for example 15 / 10 produces 1.5.
Gives the remainder left when one whole number is divided by another, for example 17 % 3 produces 2.
Raises a value to a given power, shown by **, for example 5 ** 2 produces 25.
The agreed order for evaluating operators, where brackets come first and indices before division, multiplication, addition and subtraction.
Finds the difference between two values by taking one away from the other, for example 5 - 7 produces -2.
Gives the whole number of times one value fits into another, discarding any remainder, for example 17 // 3 produces 5.
Combines a value with itself a set number of times, for example 5 * 7 produces 35.