






'''simple docstring'''

import math

def 						__magic_name__       (							__UpperCAmelCase      )						->					Any:

   '''simple docstring'''







   __SCREAMING_SNAKE_CASE      							=       0
   __SCREAMING_SNAKE_CASE      							=       0
   while num > 0:
      __SCREAMING_SNAKE_CASE      							=       num % 8
      __SCREAMING_SNAKE_CASE      							=       octal + (remainder * math.floor(math.pow(10							,	lowerCAmelCase_      )      ))
      counter += 1
      __SCREAMING_SNAKE_CASE      							=       math.floor(num / 8      )  # basically /= 8 without remainder if any
      # This formatting removes trailing '.0' from `octal`.
   return f"""0o{int(lowerCAmelCase_      )}"""

def 						__magic_name__       (							)						->					Optional[Any]:

   '''simple docstring'''







   print("""\n2 in octal is:"""      )
   print(decimal_to_octal(2      )      )  # = 2
   print("""\n8 in octal is:"""      )
   print(decimal_to_octal(8      )      )  # = 10
   print("""\n65 in octal is:"""      )
   print(decimal_to_octal(65      )      )  # = 101
   print("""\n216 in octal is:"""      )
   print(decimal_to_octal(216      )      )  # = 330
   print("""\n512 in octal is:"""      )
   print(decimal_to_octal(512      )      )  # = 1000
   print("""\n"""      )


if __name__ == "__main__":
    main()












'''simple docstring'''

import requests
from bsa import BeautifulSoup

def 						__magic_name__       (							__UpperCAmelCase = "AAPL"      )						->					str:

   '''simple docstring'''







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





