input: Write a function to remove a key from a dictionary.
  assert remove_from_dict({'one': 1, 'two': 2, 'three': 3}, 'three') == {'one': 1, 'two': 2}
  assert remove_from_dict({'name': 'Alice', 'age': 30, 'city': 'New York'}, 'age') == {'name': 'Alice', 'city': 'New York'}
  assert remove_from_dict({'a': 10, 'b': 20, 'c': 30}, 'd') == {'a': 10, 'b': 20, 'c': 30}
output: def remove_from_dict(d, key):
      if key in d:
          del d[key]
      return d