




from __future__ import annotations







def 				lowerCAmelCase_	(     snake_case_,snake_case_     ):
      _A			,   _A							:     Any			=						set(snake_case_     ), [start]

      while stack:
            _A							:     Union[str, Any]			=						stack.pop()
            explored.add(snake_case_     )
            # Differences from BFS:
            # 1) pop last element instead of first one
            # 2) add adjacent elements to stack without exploring them
            for adj in reversed(graph[v]     ):
                  if adj not in explored:
                        stack.append(snake_case_     )
      return explored


_snake_case										=       {
    "A": ["B", "C", "D"],
    "B": ["A", "D", "E"],
    "C": ["A", "F"],
    "D": ["B", "D"],
    "E": ["B", "F"],
    "F": ["C", "E", "G"],
    "G": ["F"],
}

if __name__ == "__main__":
  import doctest

  doctest.testmod()
  print(depth_first_search(G, "A"))







import requests
from bsa import BeautifulSoup







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

