Computer Science for IGCSE & O level - Programming (Section 8 - No. 22)

In Python, what will be the output of `print(15 % 4)`?
1
2
3
3.75

Explanation

The modulo operator (%) returns the remainder of the division. 15 divided by 4 is 3 with a remainder of 3.

Comments (0)

Advertisement