How can I check if a key exists in a dictionary?

Let's say I have an associative array like so: {'key1': 22, 'key2': 42}.

How can I check if key1 exists in the dictionary?

← Назад к списку