Q. Which keyword is used to check if a key exists in a dictionary?

  • (A) exists
  • (B) has
  • (C) in
  • (D) contains
πŸ’¬ Discuss
βœ… Correct Answer: (C) in
Explanation: The `in` keyword is used to check if a key exists in the dictionary.
Explanation by: Mr. Dubey
The `in` keyword is used to check if a key exists in the dictionary.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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