0
print(7%(5//2)) the output come 1 but how
plz tell me i am totally new in this field
1 Odpowiedź
+ 5
Brackets have the highest property in the operators list , which means that the expression inside them is evaluated first .
// is floor division operator . Normally a division will return 2.5 for 5/2 but it will return a whole number that is less than what you will get normally from a division, i.e 2 .
%returns remainder
7%2=1 as 2*3=6 and you are left with 1.