input: from typing import List
  
  def get_stock_price(stocks: List[str]) -> List[str]:
      """Fetch the latest stock prices from Yahoo Finance for a given list of stock names.
      
      >>> get_stock_price(["AAPL stocks", "MSFT stocks", "FB stocks", "GOOG stocks"])
      ['The price of AAPL stocks is $149.70', 'The price of MSFT stocks is $305.22', 'The price of FB stocks is $350.48', 'The price of GOOG stocks is $2801.76']
      """
      results = []
      for stock in stocks:
          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
          results.append(f'The price of {stock} is {price}.')
      return results
output:     results = []
      for stock in stocks:
          stock_name = stock.split()[0]
          url = f"https://finance.yahoo.com/quote/{stock_name}"
          response = requests.get(url)
          soup = BeautifulSoup(response.text, 'html.parser')
          price = soup.find('fin-streamer', {'data-field': 'regularMarketPrice'}).text
          results.append(f'The price of {stock} is ${price}')
      return results