Skip to content
English
  • There are no suggestions because the search field is empty.

What does the // operator do?

In Python, the / operator performs division and returns the quotient in the float.
 
For example: 5 / 2 returns 2.5

 

The // operator, on the other hand, returns the quotient in an integer.

 

For example: 5 // 2 returns 2