predict the output of 5%2
Answers
Answered by
1
Answer- The above question is from the chapter 'A Brief Overview of Python'.
Python-
Python is a simple programming language.
It has been created by Guido van Rossum and launched in 1991.
Its features make it easy to understand and this language is used a lot in the big companies and industries.
Concept used: Modulus operator is an arithmetic operator used in Python to obtain remainder after division.
It is denoted by % symbol.
Example: 7 % 3 = 1
Given question: Predict the output of 5 % 2.
Solution: >>> 5 % 2
Output: 1
Answered by
28
As we know that % (modulus) is used for finding the remainder so 5%2 = 1 Ans
Similar questions