input: 
  from typing import List
  import requests
  from bs4 import BeautifulSoup
  
  def fetch_prices(stock_names: List[str]) -> List[str]:
      """ Fetch the latest stock prices for a list of stock names from finance.yahoo.com.
      Each stock name should include the word 'stocks' as part of the search term.
      Returns a list of strings, each in the format 'The price of {stock} is {price}.'
      >>> fetch_prices(["AAPL stocks", "MSFT stocks", "FB stocks", "GOOG stocks"])
      ["The price of AAPL stocks is $99.99.", "The price of MSFT stocks is $200.00.", "The price of FB stocks is $300.01.", "The price of GOOG stocks is $1200.50."]
      """
      prices = []
      for stock in stock_names:
          url = f"https://finance.yahoo.com/quote/{stock}"
          response = requests.get(url)
          soup = BeautifulSoup(response.text, 'html.parser')
          price = soup.find('div', {'class': 'My(6px) Pos(r) smartphone_Mt(6px)'}).find('span').text
          prices.append(f'The price of {stock} is {price}.')
      return prices
  
output:     prices = []
      for stock in stock_names:
          url = f"https://finance.yahoo.com/quote/{stock.split()[0]}"
          response = requests.get(url)
          soup = BeautifulSoup(response.text, 'html.parser')
          price = soup.find('fin-streamer', {'data-field': 'regularMarketPrice'}).text
          prices.append(f'The price of {stock} is {price}.')
      return prices