input: 
  def delete_key(dic: dict, k: str):
      """Deletes a given key from a dictionary.
      
      >>> delete_key({'foo': 1, 'bar': 2, 'baz': 3}, 'baz')
      {'foo': 1, 'bar': 2}
      >>> delete_key({'a': 1, 'b': 2, 'c': 3}, 'd')
      {'a': 1, 'b': 2, 'c': 3}
      """
      if k in dic:
          del dic[k]
      return dic
  
output:     if k in dic:
          del dic[k]
      return dic