





'''simple docstring'''

def 						__magic_name__       (							__UpperCAmelCase      )						->					int:

   '''simple docstring'''







   if not isinstance(__UpperCAmelCase							,	__UpperCAmelCase      ):
      __SCREAMING_SNAKE_CASE      							=       f"""Input value of [number={number}] must be an integer"""
      raise TypeError(__UpperCAmelCase      )

   if number < 1:
      __SCREAMING_SNAKE_CASE      							=       f"""Input value of [number={number}] must be > 0"""
      raise ValueError(__UpperCAmelCase      )

   __SCREAMING_SNAKE_CASE      							=       1

   for i in range(1							,	__UpperCAmelCase      ):
      current_number *= 4 * i - 2
      current_number //= i + 1

   return current_number


if __name__ == "__main__":
    import doctest

    doctest.testmod()












'''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}''')





