input: 
  def get_stock_price(stock: str) -> str:
      """Extract the latest stock price for a given stock symbol from Yahoo Finance.
      >>> get_stock_price("AAPL stocks")
      "150.00"
      >>> get_stock_price("MSFT stocks")
      "300.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