
- Python Basic Tutorial
- Python - Home
- Python - Overview
- Python - Environment Setup
- Python - Basic Syntax
- Python - Comments
- Python - Variables
- Python - Data Types
- Python - Operators
- Python - Decision Making
- Python - Loops
- Python - Numbers
- Python - Strings
- Python - Lists
- Python - Tuples
- Python - Dictionary
- Python - Date & Time
- Python - Functions
- Python - Modules
- Python - Files I/O
- Python - Exceptions
What are different arithmetic operators in Python?
Arithmetic operators in Python are explained below −
+ for addition − performs addition of operands on either side
>>a=5 >>b=7 >>c=a+b >>c 12
- for subtraction − subtracts second operand from first
>>a=10 >>b=5 >>c=a-b >>c 5
* for multiplication − multiplies first operand by second
>>a=5 >>b=2 >>c=a*b >>c 10
/ for division − divides first operand by second
>>a=10 >>b=5 >>c=a/b >>c 2
% for modulo or remainder − returns remainder of division of first operand by second
>>a=10 >>b=3 >>c=a%b >>c 1
- Related Articles
- What are Arithmetic Operators in JavaScript?
- What are arithmetic operators in C#?
- What are different basic operators in Python?
- Python Arithmetic Operators
- What are the arithmetic operators in Java?
- What are different Identity operators types in Python?
- What are different assignment operators types in Python?
- What are different bitwise operators types in Python?
- What are the arithmetic and character operators in DBMS?
- Arithmetic Operators in C++
- Java arithmetic operators
- Perl Arithmetic Operators
- What is different in & and AND operators in Python?
- What is different in | and OR operators in Python?
- What is operand of arithmetic operators in Java

Advertisements