input: from typing import List
  
  
  def get_stock_price(stock: str) -> float:
      """ Extract the stock price from Yahoo Finance website for a given stock symbol.
      >>> get_stock_price('AAPL stocks')
      148.86
      >>> get_stock_price('MSFT stocks')
      293.15
      """
      import requests
      from bs4 import BeautifulSoup
      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 float(price)
output:     import requests
      from bs4 import BeautifulSoup
      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 float(price)