






"""simple docstring"""







import requests
from bsa import BeautifulSoup






def    _lowerCAmelCase							(   lowerCAmelCase = "AAPL"		):







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




'''simple docstring'''






def 							UpperCamelCase_     (       A__   :  list[list[int | float]]   ):
  '''simple docstring'''





  lowerCAmelCase_     : List[str]     =  len(A__   )
  lowerCAmelCase_     : Union[str, Any]     =  len(matrix[0]   )
  lowerCAmelCase_     : Optional[int]     =  min(A__				,       A__   )

  for row in range(A__   ):
    # Check if diagonal element is not zero
    if matrix[row][row] != 0:
      # Eliminate all the elements below the diagonal
      for col in range(row + 1				,       A__   ):
        lowerCAmelCase_     : int     =  matrix[col][row] / matrix[row][row]
        for i in range(A__				,       A__   ):
          matrix[col][i] -= multiplier * matrix[row][i]
    else:
      # Find a non-zero diagonal element to swap rows
      lowerCAmelCase_     : int     =  True
      for i in range(row + 1				,       A__   ):
        if matrix[i][row] != 0:
          lowerCAmelCase_,				lowerCAmelCase_     : List[Any]     =  matrix[i], matrix[row]
          lowerCAmelCase_     : Dict     =  False
          break
      if reduce:
        rank -= 1
        for i in range(A__   ):
          lowerCAmelCase_     : List[Any]     =  matrix[i][rank]

            # Reduce the row pointer by one to stay on the same row
      row -= 1

  return rank


if __name__ == "__main__":
  import doctest

  doctest.testmod()



