In this tutorial, you will learn about arithmetic operators in python and arithmetic operator examples. These operators are used with numeric values to perform the operations like Addition (+), Multiplication (*), Division (/), Subtraction (-), Modulus (%), Exponentiation (**) and Floor Division (//) in python. If multiple operator are taking place we need to use the parenthesis (). For arithmetic operator we will take a simple example of addition where we add two digits. The asterisk (*) is the token used for multiplication, and ** is the token used for exponentiation (raising a number to a power).
Suppose ‘4’ and ‘5’ are two operands then addition is,
x=4
Y=5
Print(x+y)
O/p:-
Output is 9.
Similarly we can use for other operators as Multiplication (*), Division (/), Subtraction (-), etc.