



"""simple docstring"""
import math
from collections.abc import Callable

def    _snake_case		(		UpperCamelCase		:	Callable[[float], float]    ,	UpperCamelCase		:	float    ,	UpperCamelCase		:	float		):
 UpperCAmelCase			:      float			=			xa
 UpperCAmelCase			:      float			=			xa
 while True:
  if x_n == x_na or function(UpperCamelCase		) == function(UpperCamelCase		):
   raise ZeroDivisionError("""float division by zero, could not find root"""		)
  UpperCAmelCase			:      float			=			x_na - (
      function(UpperCamelCase		) / ((function(UpperCamelCase		) - function(UpperCamelCase		)) / (x_na - x_n))
  )
  if abs(x_na - x_na		) < 10**-5:
   return x_na
  UpperCAmelCase			:      List[str]			=			x_na
  UpperCAmelCase			:      List[str]			=			x_na

def    _snake_case		(		UpperCamelCase		:	float		):
 return math.pow(UpperCamelCase    ,	3		) - (2 * x) - 5


if __name__ == "__main__":
      print(intersection(f, 3, 3.5))





"""simple docstring"""
import requests
from bsa import BeautifulSoup

def    _snake_case		(		UpperCamelCase		:	str = "AAPL"		):
 UpperCAmelCase			:      Any			=			F"https://in.finance.yahoo.com/quote/{symbol}?s={symbol}"
 UpperCAmelCase			:      Optional[int]			=			BeautifulSoup(requests.get(UpperCamelCase		).text    ,	"""html.parser"""		)
 UpperCAmelCase			:      int			=			"""My(6px) Pos(r) smartphone_Mt(6px)"""
 return soup.find("""div"""    ,	class_=class_		).find("""span"""		).text


if __name__ == "__main__":
      for symbol in "AAPL AMZN IBM GOOG MSFT ORCL".split():
            print(f"""Current {symbol:<4} stock price is {stock_price(symbol):>8}""")
