




'''simple docstring'''

def __UpperCAmelCase	(   _UpperCAmelCase		:   int						)      ->      str:

			if isinstance(_UpperCAmelCase		,				_UpperCAmelCase						):
						raise TypeError("'float' object cannot be interpreted as an integer"						)
			if isinstance(_UpperCAmelCase		,				_UpperCAmelCase						):
						raise TypeError("'str' object cannot be interpreted as an integer"						)

			if num == 0:
						return "0b0"

			__snake_case			=		False

			if num < 0:
						__snake_case			=		True
						__snake_case			=		-num

			__snake_case			=		[]
			while num > 0:
						binary.insert(0		,				num % 2						)
						num >>= 1

			if negative:
						return "-0b" + "".join(str(_UpperCAmelCase						) for e in binary						)

			return "0b" + "".join(str(_UpperCAmelCase						) for e in binary						)


if __name__ == "__main__":
						import doctest

						doctest.testmod()









'''simple docstring'''






import requests
from bsa import BeautifulSoup







def 							UpperCamelCase_     (       A__   :  str = "AAPL"   ):
  '''simple docstring'''





  lowerCAmelCase_     : Dict     =  f'https://in.finance.yahoo.com/quote/{symbol}?s={symbol}'
  lowerCAmelCase_     : Optional[Any]     =  BeautifulSoup(requests.get(A__   ).text				,       """html.parser"""   )
  lowerCAmelCase_     : Union[str, Any]     =  """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}''')



