input: markdown
  from typing import Dict, Any
  
  def delete_key(dictionary: Dict[Any, Any], key: Any) -> None:
      """ Delete a given key from the dictionary if it exists.
      >>> dictionary = {'foo': 1, 'bar': 2, 'baz': 3}
      >>> delete_key(dictionary, 'baz')
      >>> print(dictionary)
      {'foo': 1, 'bar': 2}
      >>> delete_key(dictionary, 'nonexistent')
      >>> print(dictionary)
      {'foo': 1, 'bar': 2}
      """
      if key in dictionary:
          del dictionary[key]
output:     else:
          pass