← Back to list

Arithmetic Operators in Python

Python supports the following arithmetic operators:

kbkcidudu · 2025-02-19 19:44 · 0 claps · 0.3 min read
#arithmetic-operators #floor-division #modulus #division
Open on Medium ↗

Arithmetic Operators in Python

Python supports the following arithmetic operators:

Example Usage

+ ----> addition
- ----> subtraction
* ----> multiplication
/ ----> division
// ---> floor division
% ----> finding the remainder(mod)
** ---> exponention
a = 10
b = 3
print(a + b)  # 13
print(a - b)  # 7
print(a * b)  # 30
print(a / b)  # 3.3333
print(a // b) # 3
print(a % b)  # 1
print(a ** b) # 1000

메타데이터
post_id
2c99d923bde0
slug
arithmetic-operators-in-python-2c99d923bde0
url
https://medium.com/@kbkcidudu/arithmetic-operators-in-python-2c99d923bde0
canonical_url
https://medium.com/@kbkcidudu/arithmetic-operators-in-python-2c99d923bde0
author_url
https://medium.com/@kbkcidudu
status
ok
fetched_at
2026-08-04 09:17:15