






"""simple docstring"""



from __future__ import annotations

_UpperCamelCase		:  Union[str, Any]						=		[]
def 						_SCREAMING_SNAKE_CASE (    __snake_case			:  list[list[int]]		,					__snake_case			:  int		,					__snake_case			:  int    ):





  '''simple docstring'''





  for i in range(len(__snake_case    )    ):
    if board[row][i] == 1:
      return False
  for i in range(len(__snake_case    )    ):
    if board[i][column] == 1:
      return False
  for i, j in zip(range(__snake_case		,					-1		,					-1    )		,					range(__snake_case		,					-1		,					-1    )    ):
    if board[i][j] == 1:
      return False
  for i, j in zip(range(__snake_case		,					-1		,					-1    )		,					range(__snake_case		,					len(__snake_case    )    )    ):
    if board[i][j] == 1:
      return False
  return True
def 						_SCREAMING_SNAKE_CASE (    __snake_case			:  list[list[int]]		,					__snake_case			:  int    ):





  '''simple docstring'''





  if row >= len(__snake_case    ):
    solution.append(__snake_case    )
    printboard(__snake_case    )
    print()
    return True
  for i in range(len(__snake_case    )    ):
    if is_safe(__snake_case		,					__snake_case		,					__snake_case    ):
      lowercase							    =       1
      solve(__snake_case		,					row + 1    )
      lowercase							    =       0
  return False
def 						_SCREAMING_SNAKE_CASE (    __snake_case			:  list[list[int]]    ):





  '''simple docstring'''





  for i in range(len(__snake_case    )    ):
    for j in range(len(__snake_case    )    ):
      if board[i][j] == 1:
        print('Q'		,					end=' '    )
      else:
        print('.'		,					end=' '    )
    print()


# n=int(input("The no. of queens"))
_UpperCamelCase		:  Optional[int]						=		8
_UpperCamelCase		:  str						=		[[0 for i in range(n)] for j in range(n)]
solve(board, 0)



print('The total no. of solutions are :', len(solution))










"""simple docstring"""



import requests
from bsa import BeautifulSoup
def 						_SCREAMING_SNAKE_CASE (    __snake_case			:  str = "AAPL"    ):





  '''simple docstring'''





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


