A

Admin • 832.52K Points
Coach

Q. What is the result of `5 == 5.0` in Python?

  • (A) True
  • (B) False
  • (C) TypeError
  • (D) None
  • Correct Answer - Option(A)
  • Views: 18
  • Filed under category Python
  • Hashtags:

Explanation by: Admin

Python considers `5` (int) and `5.0` (float) equal in value when compared using `==`.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.