what is the difference between / and // in python
Answers
Answered by
1
Answer:
What is the difference between / and // in Python?
Difference between the ‘// ‘ and ‘/‘ in Python.
Normal Division / : Divides the value on the left by the one on the right. Notice that division results in a floating-point value.
Floor Division // : Divides and returns the integer value of the quotient. It neglects the digits after the decimal.
Similar questions