input: from typing import List
  
  def get_latest_stock_prices(stock_names: List[str]) -> List[str]:
      """
      Extracts the latest stock prices from Yahoo Finance for a given list of stock names.
      Each stock name in the list should include the word "stocks" to construct the URL correctly.
      
      >>> get_latest_stock_prices(["AAPL stocks", "MSFT stocks", "FB stocks"])
      ["The price of AAPL stocks is 145.09.", "The price of MSFT stocks is 260.33.", "The price of FB stocks is 340.72."]
      """
output:     prices = []
      for stock in stock_names:
          if "stocks" in stock:
              url = f"https://finance.yahoo.com/quote/{stock.split()[0]}"
              response = requests.get(url)
              if response.status_code == 200:
                  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