>>> 20//6 3 for why? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

>>> 20//6 3 for why?

15th Oct 2016, 2:42 PM
范哲維
范哲維 - avatar
4 Answers
+ 1
it's just like integer division in c.'//'operator forces integer division therefore decimal things are dropped. used for quotient.
15th Oct 2016, 6:10 PM
Suraj Verma
Suraj Verma - avatar
0
Because 3 is the number that can divide 20 and can be multipled by two with a close remainder
15th Oct 2016, 2:57 PM
Ikechukwu Ngoesina
Ikechukwu Ngoesina - avatar
0
thank you
15th Oct 2016, 2:59 PM
范哲維
范哲維 - avatar
0
thats round number (/= float then convert to integer // )
23rd Oct 2016, 10:40 AM
riki ruslan
riki ruslan - avatar