input: from typing import List
  
  def get_stock_prices(stocks: List[str]) -> List[str]:
      """ Extracts the latest stock prices from finance.yahoo.com for the given list of stocks.
      Returns a list of strings, each containing the stock name and its corresponding price.
      Example:
      >>> get_stock_prices(["AAPL stocks", "MSFT stocks", "FB stocks", "GOOG stocks"])
      ['The price of AAPL stocks is 145.72.', 'The price of MSFT stocks is 279.65.', 'The price of FB stocks is 328.34.', 'The price of GOOG stocks is 2713.45.']
      """
output:     import requests
      from bs4 import BeautifulSoup
  
      base_url = "https://finance.yahoo.com/quote/"
      prices = []
  
      for stock in stocks:
          stock_name = stock.split()[0]
          url = base_url + stock_name
          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