input: Write a python function to edit a dictionary by adding or updating a key-value pair.
  assert edit_dict({'English': 'Hi', 'Spanish': 'Hola', 'Japanese': 'Konnichiwa'}, 'French', 'Bonjour') == {'English': 'Hi', 'Spanish': 'Hola', 'Japanese': 'Konnichiwa', 'French': 'Bonjour'}
  assert edit_dict({'English': 'Hi', 'Spanish': 'Hola', 'Japanese': 'Konnichiwa'}, 'Japanese', 'Ohayou') == {'English': 'Hi', 'Spanish': 'Hola', 'Japanese': 'Ohayou'}
  assert edit_dict({'English': 'Hi'}, 'German', 'Hallo') == {'English': 'Hi', 'German': 'Hallo'}
output: def edit_dict(d, key, value):
      d[key] = value
      return d