Define a function to check if a given key already exists in a dictionary.

Define a function that takes 2 parameters:

  • A Dictionary
  • A key

Function should return True if the key already exists in the dictionary.

Function should return False if the key doesn't exist in the dictionary.