input: 
  def get_stock_price(stock: str) -> str:
      """ Extracts and returns the latest stock price from finance.yahoo.com.
      >>> get_stock_price("AAPL stocks")
      '150.00'
      >>> get_stock_price("MSFT stocks")
      '300.00'
      >>> get_stock_price("FB stocks")
      '350.00'
      >>> get_stock_price("GOOG stocks")
      '2800.00'
      """
      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
  
output:     import requests
      from bs4 import BeautifulSoup