πŸ“Š Python
Q. What will be the output of this code snippet?
Code:
print(0.1 + 0.2 == 0.3)
  • (A) True
  • (B) False
  • (C) Error
  • (D) None
πŸ’¬ Discuss
βœ… Correct Answer: (B) False

Explanation: Due to floating-point precision issues, the sum is not exactly 0.3.

Explanation by: Mr. Dubey
Due to floating-point precision issues, the sum is not exactly 0.3.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
50
Total Visits
πŸ“½οΈ
8 mo ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
80%
Success Rate