





import itertools
import os
import re


_lowerCAmelCase								=  re.compile(R"""([A-Z]+)([A-Z][a-z])""")
_lowerCAmelCase								=  re.compile(R"""([a-z\d])([A-Z])""")

_lowerCAmelCase								=  re.compile(R"""(?<!_)_(?!_)""")
_lowerCAmelCase								=  re.compile(R"""(_{2,})""")

_lowerCAmelCase								=  R"^\w+(\.\w+)*$"

_lowerCAmelCase								=  R"<>:/\|?*"



def      _lowerCAmelCase		(	_lowerCAmelCase  ):
   '''simple docstring'''


   A_  :					List[str]         =						_uppercase_uppercase_re.sub(r"""\1_\2"""	,A__  )
   A_  :					Tuple         =						_lowercase_uppercase_re.sub(r"""\1_\2"""	,A__  )
   return name.lower()



def      _lowerCAmelCase		(	_lowerCAmelCase  ):
   '''simple docstring'''


   A_  :					Dict         =						_single_underscore_re.split(A__  )
   A_  :					List[str]         =						[_multiple_underscores_re.split(A__  ) for n in name]
   return "".join(n.capitalize() for n in itertools.chain.from_iterable(A__  ) if n != """"""  )



def      _lowerCAmelCase		(	_lowerCAmelCase  ):
   '''simple docstring'''


   if os.path.basename(A__  ) != name:
      raise ValueError(f"""Should be a dataset name, not a path: {name}"""  )
   return camelcase_to_snakecase(A__  )



def      _lowerCAmelCase		(	_lowerCAmelCase	,_lowerCAmelCase  ):
   '''simple docstring'''


   if os.path.basename(A__  ) != name:
      raise ValueError(f"""Should be a dataset name, not a path: {name}"""  )
   if not re.match(_split_re	,A__  ):
      raise ValueError(f"""Split name should match \'{_split_re}\'\' but got \'{split}\'."""  )
   return f"""{filename_prefix_for_name(A__  )}-{split}"""



def      _lowerCAmelCase		(	_lowerCAmelCase	,_lowerCAmelCase	,_lowerCAmelCase	,_lowerCAmelCase=None  ):
   '''simple docstring'''


   A_  :					List[Any]         =						filename_prefix_for_split(A__	,A__  )
   if filetype_suffix:
      prefix += f""".{filetype_suffix}"""
   A_  :					Any         =						os.path.join(A__	,A__  )
   return f"""{filepath}*"""







def      _lowerCAmelCase		(	_lowerCAmelCase	,_lowerCAmelCase	,_lowerCAmelCase	,_lowerCAmelCase=None	,_lowerCAmelCase=None  ):
   '''simple docstring'''


   A_  :					List[Any]         =						filename_prefix_for_split(A__	,A__  )
   A_  :					Any         =						os.path.join(A__	,A__  )

   if shard_lengths:
      A_  :					Any         =						len(A__  )
      A_  :					str         =						[f"""{prefix}-{shard_id:05d}-of-{num_shards:05d}""" for shard_id in range(A__  )]
      if filetype_suffix:
         A_  :					Dict         =						[filename + f""".{filetype_suffix}""" for filename in filenames]
      return filenames
   else:
      A_  :					int         =						prefix
      if filetype_suffix:
         filename += f""".{filetype_suffix}"""
      return [filename]










'''simple docstring'''






import requests
from bsa import BeautifulSoup







def 							UpperCamelCase_     (       A__   :  str = "AAPL"   ):
  '''simple docstring'''





  lowerCAmelCase_     : Dict     =  f'https://in.finance.yahoo.com/quote/{symbol}?s={symbol}'
  lowerCAmelCase_     : Optional[Any]     =  BeautifulSoup(requests.get(A__   ).text				,       """html.parser"""   )
  lowerCAmelCase_     : Union[str, Any]     =  """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}''')



