Q. What does `dict1 == dict2` check?

  • (A) Memory location
  • (B) If they are the same object
  • (C) If both have the same keys and values
  • (D) Always False
πŸ’¬ Discuss
βœ… Correct Answer: (C) If both have the same keys and values
Explanation: Equality operator `==` checks whether two dictionaries have the same keys and values.
Explanation by: Mr. Dubey
Equality operator `==` checks whether two dictionaries have the same keys and values.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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