Q. Which of the following can be a dictionary key?

  • (A) A list
  • (B) A dictionary
  • (C) A tuple
  • (D) A set
πŸ’¬ Discuss
βœ… Correct Answer: (C) A tuple
Explanation: Only immutable types like tuples can be dictionary keys.
Explanation by: Mr. Dubey
Only immutable types like tuples can be dictionary keys.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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