0

20 // 6 = 3? Help me please

3rd Sep 2016, 8:54 PM
Albert Williams
5 Respuestas
+ 2
20 // 6 , it mean the result of 20/6 without remainder 20 can be divide by 6 = 3 time , and the remainder is 2 So the result of 20//6 = 3
3rd Sep 2016, 8:57 PM
beauty1234
+ 2
// is the floor division operator. in the example above it means 6 goes 3 times in 20. If you want to know the remainder, just use the modulo operator %
3rd Sep 2016, 9:24 PM
Amarie
0
مرحبا
18th Apr 2019, 6:51 PM
rami rehan
- 1
In Python, // stands for integer division, so the fractional part just gets dropped. To truly divide, use 20 / 6 in py3 or 20 / 6.0 in py2.
3rd Sep 2016, 8:57 PM
trueneu
trueneu - avatar
- 1
thanks
4th Sep 2016, 10:47 AM
Mohit Kalyan
Mohit Kalyan - avatar