0
20//6=3 how
4 Respuestas
+ 1
Using the division operator // removes the part after decimal point, ie it converts the float into an integer.
So if we use / we get 3.33
+ 1
Because 6 divides into 20, 3 times. Since it's integer division, it 'must' return an integer value.
6, 12, 18
Imagine asking the question: How many times can you fit 6 under the value 20? You'd answer: 3 times. Since 3 times 6 is 18. It technically removes the decimal.
0
It outputs the quotient, not the remainder. Quotient is a fancy word for the number before the decimal. If you want the remainder as well as the quotient(decimal) you would do...
>>>20/6
3.33333
0
If I am not wrong, this division is called the floor division. You can look it up in wiki for a better explanation.