The // is the floored-division operator in Python. The thing that matters is noticeable when partitioning floating-point values.
In Python2, isolating two ints utilizes integer division, which winds up getting you something very similar to floored division. Be that as it may, you can in any case utilize // to get a stunned consequence of the floating point division.
# Python 2
>>> 10.0 / 3
3.3333333333333335
>>> 10.0 // 3
3.0
But in Python3, separating two ints brings about a float, however utilizing // goes about as integer division.
# Python3
>>> 10 / 3
3.3333333333333335
>>> 10 // 3
3
Floored division implies round towards negative limitlessness. This is equivalent to truncation for positive values, yet not for negative. 3.3 adjusts down to 3, however - 3.3 adjusts down to - 4.
# Python3
>>> -10//3
-4
>>> 10//3
3
Join the python online course fast, to learn python concepts in detail and get certified.