+ 1
Please Help me
What does % Mean Exmaple:7%(5 // 2)
4 Answers
+ 2
% Operator in Modulus Operator.
It typically Functions on integer values.
This operator gives remainder.
E. G.
4%2 = 0
5%2 = 1
etc
+ 1
7 1
--- = 2 -----
3 3
The output is how many left.
In this example, there is 1 left.
So, the output is 1
0
it is the modulus operator. This way, it is to mean remainder of 7 by (5//2)
0
% mean how many left if you divide the number