Arithmetic Operations in Python

Python provides us with some wonderful operations, and there are some special symbols used to perform mathematical/arithmetic equations. Some of these will be familiar:

(1) Addition (+)
(2) Subtraction (-)
(3) Multiplication (*)
(4) Division (/)
(5) Exponents (**)
(6) Discard the remainder while doing division (//)
(7) Find the remainder (%)

***While performing these mathematical operations, remember that Python always follows PEMDAS (Parenthesis, Exponents, Multiplication, Division, Addition, Subtraction).

Previous