- 1
can you explain the floor division and modulo operator
2 Réponses
+ 3
Floor division devides the numbers and discard the fractional part of the result.
For example:- 5//2 = 2
Whereas modulo operator devides the number and returns remainder.
For example:- 5%2 = 1