input: Write a function to delete a given key from a dictionary.
  
  ### Function Definition:
  def delete_key(dic, k):
    if k in dic:
      del dic[k]
  
  ### Test Cases:
  dictionary = {'foo': 1, 'bar': 2, 'baz': 3}
  key = 'baz'
  
  delete_key(dictionary, key)
  
  ### Expected Output:
  {'foo': 1, 'bar': 2}
output: def delete_key(dic, k):
    if k in dic:
      del dic[k]