πŸ“Š Python
Q. Which of the following checks if a key exists in a dictionary?
  • (A) 'key' in dict
  • (B) dict.has('key')
  • (C) dict.includes('key')
  • (D) 'key'.exists(dict)
πŸ’¬ Discuss
βœ… Correct Answer: (A) 'key' in dict

Explanation: `'key' in dict` checks if a key exists in a dictionary.

Explanation by: Mr. Dubey
`'key' in dict` checks if a key exists in a dictionary.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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