HOME C C++ PYTHON JAVA HTML CSS JAVASCRIPT BOOTSTRAP JQUERY REACT PHP SQL AJAX JSON DATA SCIENCE AI

Python Arithmetic Operators

Arithmetic operators are used with numeric values to perform common mathematical operations.

Types of Arithmetic Operators


Name Operator Example
Addition + a+b
Subtraction - a-b
Multiplication * a*b
Division / a/b
Modulus % a%b
Exponentiation ** a**b
Floor Division // a//b