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

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