input: Write a python function to calculate the average price of a list of items, where each item is represented as a dictionary with keys "name" and "price".
  assert calculate_average_price([{"name": "chair", "price": 20}, {"name": "table", "price": 30}, {"name": "sofa", "price": 40}]) == 30
  assert calculate_average_price([{"name": "lamp", "price": 10}, {"name": "desk", "price": 50}]) == 30
  assert calculate_average_price([{"name": "bed", "price": 100}, {"name": "wardrobe", "price": 150}, {"name": "drawer", "price": 50}]) == 100
output: def calculate_average_price(items):
      total_price = sum(item['price'] for item in items)
      average_price = total_price / len(items)
      return average_price