
'''simple docstring'''

import requests
from bsa import BeautifulSoup







def  a__    (    lowercase :					str = "AAPL"				)		->		str:





     """simple docstring"""

     _UpperCamelCase       =	F"""https://in.finance.yahoo.com/quote/{symbol}?s={symbol}"""
     _UpperCamelCase       =	BeautifulSoup(requests.get(lowercase				).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'''

import importlib.metadata
from typing import Union

from packaging.version import Version, parse

from .constants import STR_OPERATION_TO_FUNC


lowercase__						:      List[Any]	=    parse(importlib.metadata.version('torch'))







def  a__    (    lowercase :					Union[str, Version], lowercase :					str, lowercase :					str				)		->		List[str]:





     """simple docstring"""

     if operation not in STR_OPERATION_TO_FUNC.keys():
          raise ValueError(F"""`operation` must be one of {list(STR_OPERATION_TO_FUNC.keys()				)}, received {operation}"""				)
     _UpperCamelCase       =	STR_OPERATION_TO_FUNC[operation]
     if isinstance(lowercase, lowercase				):
          _UpperCamelCase       =	parse(importlib.metadata.version(lowercase				)				)
     return operation(lowercase, parse(lowercase				)				)







def  a__    (    lowercase :					str, lowercase :					str				)		->		List[Any]:





     """simple docstring"""

     return compare_versions(lowercase, lowercase, lowercase				)



