input: from typing import List
  
  def get_stock_prices(stocks: List[str]) -> List[str]:
      """ Given a list of stock names, the function retrieves and returns the latest stock
      prices from finance.yahoo.com.
      >>> get_stock_prices(["AAPL stocks", "MSFT stocks", "FB stocks", "GOOG stocks"])
      ['The price of AAPL stocks is 100.00.', 'The price of MSFT stocks is 300.00.', 'The price of FB stocks is 200.00.', 'The price of GOOG stocks is 250.00.']
      """
      import requests
      from bs4 import BeautifulSoup
      
      def get_stock_price(stock):
          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
          return f'The price of {stock} is {price}.'
  
      return [get_stock_price(stock) for stock in stocks]
output:     import requests
      from bs4 import BeautifulSoup
      
      def get_stock_price(stock):
          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
          return f'The price of {stock} is {price}.'
  
      return [get_stock_price(stock) for stock in stocks]