What is the result of `10 // 3` in Python?

Python Developer Easy

Python Developer — Easy

What is the result of `10 // 3` in Python?

Key points

  • The `//` operator in Python is used for floor division.
  • It always returns the whole number part of the division result.
  • This is different from regular division using `/`, which would return a floating-point number.
  • Remember to use `//` when you want to get only the integer part of the division result.

Ready to go further?

Related questions