input: def get_stock_price(stock: str) -> str:
      """This function retrieves the current stock price of a given stock from Yahoo Finance.
      It constructs a URL based on the stock name, fetches the webpage, and parses it to extract
      the stock price from a specific div and span element.
      >>> get_stock_price("AAPL stocks")
      '$150.32'
      >>> get_stock_price("MSFT stocks")
      '$325.67'
      """
      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