






'''simple docstring'''

a        =						"Alexander Joslin"

import operator as op

from .stack import Stack

def 						__magic_name__       (							__UpperCAmelCase      )						->					int:

   '''simple docstring'''







   __SCREAMING_SNAKE_CASE      							=       {"""*""": op.mul, """/""": op.truediv, """+""": op.add, """-""": op.sub}

   __SCREAMING_SNAKE_CASE      							=       Stack()
   __SCREAMING_SNAKE_CASE      							=       Stack()

   for i in equation:
      if i.isdigit():
         # RULE 1
         operand_stack.push(int(__snake_case      )      )
      elif i in operators:
         # RULE 2
         operator_stack.push(__snake_case      )
      elif i == ")":
         # RULE 4
         __SCREAMING_SNAKE_CASE      							=       operator_stack.peek()
         operator_stack.pop()
         __SCREAMING_SNAKE_CASE      							=       operand_stack.peek()
         operand_stack.pop()
         __SCREAMING_SNAKE_CASE      							=       operand_stack.peek()
         operand_stack.pop()

         __SCREAMING_SNAKE_CASE      							=       operators[opr](__snake_case							,	__snake_case      )
         operand_stack.push(__snake_case      )

    # RULE 5
   return operand_stack.peek()


if __name__ == "__main__":
    a        =						"(5 + ((4 * 2) * (2 + 3)))"
    # answer = 45
    print(F'''{equation} = {dijkstras_two_stack_algorithm(equation)}''')












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





