
"""simple docstring"""


import requests
from bsa import BeautifulSoup






def  lowercase						(	lowerCAmelCase__ = "AAPL"						):
			lowerCamelCase_					=  f"https://in.finance.yahoo.com/quote/{symbol}?s={symbol}"
			lowerCamelCase_					=  BeautifulSoup(requests.get(lowerCAmelCase__						).text	,'''html.parser'''						)
			lowerCamelCase_					=  '''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}")








a_								=       {
    0: """0""",
    1: """1""",
    2: """2""",
    3: """3""",
    4: """4""",
    5: """5""",
    6: """6""",
    7: """7""",
    8: """8""",
    9: """9""",
    10: """a""",
    11: """b""",
    12: """c""",
    13: """d""",
    14: """e""",
    15: """f""",
}





def 		a__      (		_UpperCamelCase      :			float				):
   assert type(_UpperCamelCase				) in (int, float) and decimal == int(_UpperCamelCase				)
   __lowerCamelCase    				=     int(_UpperCamelCase				)
   __lowerCamelCase    				=     ''''''
   __lowerCamelCase    				=     False
   if decimal < 0:
      __lowerCamelCase    				=     True
      decimal *= -1
   while decimal > 0:
      __lowerCamelCase				,__lowerCamelCase    				=     divmod(_UpperCamelCase			,16				)
      __lowerCamelCase    				=     values[remainder] + hexadecimal
   __lowerCamelCase    				=     '''0x''' + hexadecimal
   if negative:
      __lowerCamelCase    				=     '''-''' + hexadecimal
   return hexadecimal


if __name__ == "__main__":
  import doctest

  doctest.testmod()






