



"""simple docstring"""


from __future__ import annotations

def  _lowerCAmelCase      (   lowercase_		,	lowercase_		,	lowercase_						):
						UpperCAmelCase             = list(range(len(lowercase_						)						)						)
						UpperCAmelCase             = [v / w for v, w in zip(lowercase_		,	lowercase_						)]
						index.sort(key=lambda lowercase_						: ratio[i]		,	reverse=lowercase_						)

						UpperCAmelCase             = 0
						UpperCAmelCase             = [0] * len(lowercase_						)
						for i in index:
												if weight[i] <= capacity:
																		UpperCAmelCase             = 1
																		max_value += value[i]
																		capacity -= weight[i]
												else:
																		UpperCAmelCase             = capacity / weight[i]
																		max_value += value[i] * capacity / weight[i]
																		break

						return max_value, fractions


if __name__ == "__main__":
				import doctest

				doctest.testmod()













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


