Q. Which of these can be used as keys in a dictionary?

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

πŸ’¬ Discussion


πŸ“Š Question Analytics

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