What is the meaning of double slash==// | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 1

What is the meaning of double slash==//

12th Dec 2019, 2:39 PM
Cat reads
Cat reads - avatar
2 Answers
+ 3
Talking for python 3//9 is a floor division. This means that the result is an integer value without any decimal places. So the result here is 0. If you use a regular divison, the result is a float value. 3/9 = 0.3333...
12th Dec 2019, 4:06 PM
Lothar
Lothar - avatar
+ 1
Ohh thanku that helped me alot
13th Dec 2019, 3:26 AM
Cat reads
Cat reads - avatar