




'''simple docstring'''


import requests
from bsa import BeautifulSoup
def 						snake_case_       (UpperCamelCase			:    str = "AAPL" ):





							'''simple docstring'''


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






def 		a__      (		_UpperCamelCase      :			list[int]				):
   if not numbers:
      return 0

   if not isinstance(_UpperCamelCase			,(list, tuple)				) or not all(
       isinstance(_UpperCamelCase			,_UpperCamelCase				) for number in numbers				):
      raise ValueError('''numbers must be an iterable of integers'''				)

   __lowerCamelCase    				=     __lowerCamelCase    				=     __lowerCamelCase    				=     numbers[0]

   for i in range(1			,len(_UpperCamelCase				)				):
      # update the maximum and minimum subarray products
      __lowerCamelCase    				=     numbers[i]
      if number < 0:
         __lowerCamelCase				,__lowerCamelCase    				=     min_till_now, max_till_now
      __lowerCamelCase    				=     max(_UpperCamelCase			,max_till_now * number				)
      __lowerCamelCase    				=     min(_UpperCamelCase			,min_till_now * number				)

      # update the maximum product found till now
      __lowerCamelCase    				=     max(_UpperCamelCase			,_UpperCamelCase				)

   return max_prod






