input: def get_stock_prices(stocks: List[str]) -> List[str]:
      """Fetch the latest stock prices from finance.yahoo.com for a given list of stock tickers.
      Use a web scraper written in Python to extract the prices.
      >>> get_stock_prices(["AAPL stocks", "MSFT stocks", "FB stocks", "GOOG stocks"])
      ['145.09', '260.34', '320.59', '2723.79']
      """
      prices = []
      for stock in stocks:
          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
          prices.append(price)
      return prices
output:     import requests
      from bs4 import BeautifulSoup
      from typing import List
  
      prices = []
      for stock in stocks:
          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
          prices.append(price)
      return prices