input: 
  from typing import List
  import requests
  from bs4 import BeautifulSoup
  
  def get_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 constructs a URL for each stock, fetches the web page, and then uses BeautifulSoup
      to parse the HTML and find the stock price. It returns a list of strings with the stock names
      and their corresponding prices.
      >>> get_stock_prices(["AAPL stocks", "MSFT stocks", "FB stocks", "GOOG stocks"])
      ['The price of AAPL stocks is 145.09.', 'The price of MSFT stocks is 300.35.', 'The price of FB stocks is 350.65.', 'The price of GOOG stocks is 2800.45.']
      """
      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 price
  
      prices = []
      for stock in stock_names:
          price = get_stock_price(stock)
          prices.append(f'The price of {stock} is {price}.')
      return prices
  
output:     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 price
  
      prices = []
      for stock in stock_names:
          price = get_stock_price(stock)
          prices.append(f'The price of {stock} is {price}.')
      return prices