0
20 // 6 =3 1.25 % 0.5 0.25. What does it mean
4 odpowiedzi
+ 1
Here already given with explanation. Here % returns reminder value and // returns quotient value so
20 % 6 will return 2
20 // 6 will return 3
because 3 * 6 + 2 = 20
means
quotient * divisor + reminder = dividend
https://www.sololearn.com/learn/JUMP_LINK__&&__Python__&&__JUMP_LINK/2273/
0
Do you mean this operator %
0
'//' operator will return the quotient in whole numbers. It will not give the result in float/decimal numbers.
'%' operator, known as modulus returns the remainder.
0
Rohtash Kanwar
% = Tells remainder
// = Tells the answer after rounding it to the previous integer even if it is 5.8, ans would be 5
10 % 2 means 0 coz remainder is 0
13 % 5 is 3 coz 5*2 = 10 and remainder is 3
7//3
You can understand // by thinking how many steps did 3 take to get near 7, 3 * 2 = 6 so 2 steps.