Addition Example: 8 + 3
The addition operator (+) combines two numbers. In this case, it adds 8 and 3, resulting in 11.
Multiplication Example: 4 * 6
The multiplication operator (*) calculates the product of two numbers. When we multiply 4 by 6, we get 24.
Subtraction Example: 15 - 7
The subtraction operator (-) subtracts one number from another. Here, it subtracts 7 from 15, giving us 8.
Division Example: 30 / 3
The division operator (/) divides one number by another. When we divide 30 by 3, the result is 10.
Modulus Example: Remainder of 17 % 5
The modulus operator (%) calculates the remainder when the first number is divided by the second. Here, it finds the remainder of 17 divided by 5, which is 2.
Exponentiation Example: 2 ** 4
The exponentiation operator (**) raises the first number to the power of the second. So, 2 raised to the power of 4 is 16.