
- 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
Explain function of % operator in Python.
In Python % is an arithmetic operator that returns remainder of division operation. It is called modulo or remainder operator and operates upon numeric operands except complex numbers
>>> a=10 >>> a%3 1 >>> a%5 0 >>> b=12.5 >>> b%2.5 0.0 >>> b%2 0.5
- Related Articles
- What is function of ^ operator in Python
- Explain difference between == and is operator in Python.
- Explain the use of sql LIKE operator using MySQL in Python?
- How will you explain Python Operator Overloading?
- Explain exponentiation operator in JavaScript?
- Explain Grouping operator in JavaScript.
- Explain the use of AVG() function in MySQL using Python?
- Types of Operator in Python
- Explain the purpose of the ‘in’ operator in JavaScript
- Spread operator in function calls JavaScript
- What is instanceof operator in Java? Explain.
- Operator Functions in Python
- Ternary Operator in Python?
- Inplace operator in Python
- Explain the variables inside and outside of a class __init__() function in Python.

Advertisements