input: Write a python function to get the names of people from a list of dictionaries.
  assert get_names(list_of_dicts) == ["John", "Peter", "David"]
  assert get_names([{"name": "Alice", "age": 25, "country": "UK"}, {"name": "Bob", "age": 30, "country": "France"}]) == ["Alice", "Bob"]
  assert get_names([{"name": "Tom", "age": 40, "country": "Germany"}]) == ["Tom"]
output: def get_names(list_of_dicts):
      return [person["name"] for person in list_of_dicts]