Python Arithmetic Operators

Author: Al-mamun Sarkar Date: 2020-03-24 19:19:30

Example of Python Arithmetic Operators. 

a = 9
b = 4

add = a + b 
sub = a - b 
mul = a * b 
div1 = a / b 
div2 = a // b 
mod = a % b 
  
print(add) 
print(sub) 
print(mul) 
print(div1) 
print(div2) 
print(mod) 

Output:

 

13
5
36
2.25
2
1