What mean 20//2=? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What mean 20//2=?

pls help me

27th Nov 2016, 1:33 PM
Alfredo
Alfredo - avatar
4 Answers
+ 2
20//2=10 8/3=2.666666 8//3=2 8%3=0.666666 I hope these Examples can help you
27th Nov 2016, 2:47 PM
Anselm
+ 1
division, and the result is whole number. in python / is true division. 20//2 is the same in thos case, that 20/2. 8//3 is 2 8/3 is 2.666666
27th Nov 2016, 1:48 PM
Benedek Máté Tóth
Benedek Máté Tóth - avatar
0
The double slash gives the quotient of the division. If you divide 20 by 2, the quotient is 10. So console prints 10 as the answer.
27th Nov 2016, 3:08 PM
SpartanIM99
SpartanIM99 - avatar
0
20//2=10 // Rounding
28th Nov 2016, 9:45 AM
GuoKet
GuoKet - avatar