"/" and "//" operator in python

What are division operators in Python?

In Python programming, you can perform division in two ways. The first one is Float Division("/") and the second is Integer Division("//") or Floor Division. Float Division("/"): Divides left hand operand by right hand operand.

5/2 = 2.5

Division works in Python the way it's mathematically defined.

x/y= float(x/y)
Floor Division("//"): The division of operands where the result is the quotient in which the digits after the decimal point are removed. But if one of the operands is negative, the result is floored , i.e., rounded away from zero (towards negative infinity).
5//2=2
-11//3 = -4
Floor division works in Python the way it's mathematically defined.
x // y == math.floor(x/y)