as long as you are dealing with numerical values the ' / ' symbol will divide numbers.

Symbol ' % ' will give mod between the 2 numbers.

Examples below:

>>> x = 4/5 >>> x 0.8 >>> x = 4%5 >>> x 4

0 votes

as long as you are dealing with numerical values the ' / ' symbol will divide numbers.

Symbol ' % ' will give mod between the 2 numbers.

Examples below:

>>> x = 4/5 >>> x 0.8 >>> x = 4%5 >>> x 4

0 votes

**Operations in Python**

+. **Addition** (Sum of x and y)

- **Subtraction** (Difference between x and y)

* **Multiplication** (Product of x and y)

/ **Division** (Quotient of x and y)

** **Exponent** (x to the power of y)

// **Integer** **Division** (Gives the non-rounded integer part of the quotient of the division between x and y)

% **Mod** (Gives the remainder from the division between x and y)

You can go to this link for more information about python operators: https://www.w3schools.com/python/gloss_python_arithmetic_operators.asp

Hope this helps

...