Hello everyone, welcome to Programming In Python. Here in this post I will tell you about a basic Python program for all beginners in Python programming language. It simply takes two integer numbers and performs arithmetic operations like addition, subtraction, multiplication, division, floor division, modulus, and exponential(power) on them. So now let’s do some basic arithmetic operations in Python.
Division operation using / operator, num1 / num2 divides left hand operand by right hand operand.
Floor Division operation using // operator, num1 // num2 divides left hand operand by right hand operand, here it removes the values after decimal point.
Modulus % operator when applied returns the remainder when left hand operand is divided by right hand operand num1 % num2.
Exponential operation using ** operator, num1 ** num2 returns value of num1 num2