A

Admin • 833.24K Points
Coach

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

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

Explanation by: Admin

Due to floating-point precision, `0.1 + 0.2` is not exactly `0.3`.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.