πŸ“Š Python
Q. What is the result of `5 == 5.0` in Python?
  • (A) True
  • (B) False
  • (C) TypeError
  • (D) None
πŸ’¬ Discuss
βœ… Correct Answer: (A) True

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

Explanation by: Mr. Dubey
Python considers `5` (int) and `5.0` (float) equal in value when compared using `==`.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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