R

Rati Dubey • 8.55K Points
Tutor III

Q. What is the output of `print(5 // 2)`?

  • (A) 2.5
  • (B) 3
  • (C) 2
  • (D) Error
  • Correct Answer - Option(C)
  • Views: 11
  • Filed under category Python

Explanation by: Rati Dubey
`//` is floor division. `5 // 2` gives the quotient without decimals, which is `2`.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.


Question analytics