0

Why 20//6 ,gives 3 as output!??

8th Jan 2017, 10:23 AM
tonny
tonny - avatar
6 Respuestas
+ 6
Becouse: 20 = (6 * 3) + 2 or 20 = 3 + 3 + 3 + 3 + 3 + 3(six time) +2 # :)
8th Jan 2017, 3:50 PM
Sergey
+ 3
The operator // return a int type, in other words a integer number without the remainder.
8th Jan 2017, 11:16 AM
Yuval Tiano
Yuval Tiano - avatar
- 1
Because when you use // it gets rid of the float ( decimal ) so as 20 / 6 = 3.33333 when you do 20 // 6 and get rid of the decimal it is 3
30th Aug 2017, 12:30 PM
Adam Calleja
Adam Calleja - avatar
- 1
Because in phython it does not do the repeating decimals they will be ignored.
2nd Sep 2017, 6:01 PM
Xx_ShADoW-FALLzz
Xx_ShADoW-FALLzz - avatar
- 1
20/6 = 3.33333333333333333333333... So it just put 3
2nd Sep 2017, 6:02 PM
Xx_ShADoW-FALLzz
Xx_ShADoW-FALLzz - avatar