A

Admin • 832.27K Points
Coach

Q. What will `print(0.1 + 0.2 == 0.3)` output?

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

Explanation by: Admin

Due to floating-point precision errors, `0.1 + 0.2 != 0.3`.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.