Q. What is the output of `print(3 == 3.0)`?

  • (A) True
  • (B) False
  • (C) Error
  • (D) None
πŸ’¬ Discuss
βœ… Correct Answer: (A) True
Explanation: Python considers `3` and `3.0` equal in value, so the comparison returns `True`.
Explanation by: Rati Dubey
Python considers `3` and `3.0` equal in value, so the comparison returns `True`.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
63
Total Visits
πŸ“½οΈ
11 mo ago
Published
πŸŽ–οΈ
Rati Dubey
Publisher
πŸ“ˆ
91%
Success Rate