+ 3
Guy what is the answer and please explaine it to me. thanks
7%(5//2)
2 Antworten
+ 12
// is floor division. It'll consider only the integer part of the result. For example, if the quotient is 4.3, the // will give you 4.
So 5//2 = 2 (integer part of 2.5)
% is remainder. When we divide 6 by 4, the quotient is 1 and remainder is 2.
7%(5//2)
= 7%2
= 1 (1 remains after division)
+ 3
thx