R

Rati Dubey • 8.55K Points
Tutor III

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

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

Explanation by: Rati Dubey
`/` always performs true division in Python 3, so `5 / 2 = 2.5`.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.


Question analytics