+ 1

>>7%(5//2)

plz give me answer

5th Jan 2017, 1:24 PM
malshan
2 Answers
+ 2
% Modulus: Divides left hand operand by right hand operand and returns remainder // Floor Division: The division of operands where the result is the quotient in which the digits after the decimal point are removed. But if one of the operands is negative, the result is floored, i.e., rounded away from zero 5//2 == 2 7%(5//2) == 7%2 == 1
5th Jan 2017, 1:29 PM
DFX
DFX - avatar
+ 2
Answer should be 1 5//2=2 7%2=1
5th Jan 2017, 1:48 PM
Anselm