

- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
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 Questions & Answers
- What is function of ^ operator in Python
- How will you explain Python Operator Overloading?
- Explain difference between == and is operator in Python.
- Explain the use of sql LIKE operator using MySQL in Python?
- 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
- What is instanceof operator in Java? Explain.
- Explain the concept of logical and assignment operator in C language
- Explain Operator grammar and precedence parser in TOC
- Spread operator in function calls JavaScript
- Explain array_merge() function in PHP.
- Explain array_intersect() function in PHP.
- Explain str_split() function in PHP
Advertisements