<human>:  Python program to remove from a dictonary.
<bot>: Here is a Python program to remove from a dictionary

import random

def remove_from_dict(dictionary, key):
  """Remove a key from a dictionary."""
  try:
    return dictionary.pop(key)
  except KeyError:
    return None

# Enter the dictionary
dictionary = {"key1": "value1", "key2": "value2", "key3": "value3"}

# Calling the function
print((remove_from_dict(dictionary, "key1")))

#Example Output
# value1

#Remember to inspect code for bugs.