πŸ“Š Python
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

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