input: 
  def get_latest_stock_prices(stock_names: List[str]) -> List[str]:
      """
      Extracts the latest stock prices from finance.yahoo.com for a given list of stock names. 
      The function returns a list of formatted strings where each string contains the stock name 
      and its corresponding price.
      
      >>> get_latest_stock_prices(["AAPL stocks", "MSFT stocks", "FB stocks", "GOOG stocks"])
      ["The price of AAPL stocks is $145.09.", "The price of MSFT stocks is $249.22.", "The price of FB stocks is $310.25.", "The price of GOOG stocks is $2509.74."]
      """
  
output:     
      import requests
      from bs4 import BeautifulSoup
  
      def get_latest_stock_prices(stock_names: List[str]) -> List[str]:
          base_url = "https://finance.yahoo.com/quote/"
          results = []
  
          for stock in stock_names:
              stock_code = stock.split()[0]
              url = f"{base_url}{stock_code}?p={stock_code}"
              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
  