In this video, we’ll talk about more operators you can use, conditionals, and recursion. We’ve talked about the basic operators in the previous videos. Operators like plus, minus, multiply, and division. A very commonly used operator is modulus or also called modulo. What’s modulus? Modulus works on integers and finds the remainder when dividing two numbers. The modulus operator is the percent sign (%). For example,

1 2 |
remainder = 7 % 3 print(remainder) |

Think of dividing 7 by 3, but what gets returned is the remainder,...

*More*