Python Programming - Operators - Discussion

Discussion Forum : Operators - General Questions (Q.No. 4)
4.
What is the result of the following operation: 5 % 2?
1
2
2.5
0
Answer: Option
Explanation:
The % operator is used for modulus in Python, which returns the remainder of a division operation. In this case, 5 divided by 2 is equal to 2 with a remainder of 1, so the result of the operation is 1.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.