Q. Which of the following checks if a key exists in a dictionary?
β
Correct Answer: (A)
'key' in dict
Explanation: `'key' in dict` checks if a key exists in a dictionary.