modulus operator in Python

 Question :-

What is a modulo operator (%) in Python?

modulus operator in Python 

it is a Arithmetic operator in Python and used for getting remainder of two numbers. For better understanding we can take an example of it and it will be clear very easily.

Example :-

  1. print(77%3) 

Comments

Popular posts from this blog

Proassignmenthelp index 27

HackerRank Question: Print Function

Programmingshark index 18