






"""simple docstring"""
import requests
from bsa import BeautifulSoup

def        snake_case   (     A__ = "AAPL"		):
			UpperCAmelCase_  :				Tuple      =      F"""https://in.finance.yahoo.com/quote/{symbol}?s={symbol}"""
			UpperCAmelCase_  :				List[Any]      =      BeautifulSoup(requests.get(A__		).text			,"html.parser"		)
			UpperCAmelCase_  :				List[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}')











"""simple docstring"""
lowerCamelCase_       			=   {
    '''a''': '''AAAAA''',
    '''b''': '''AAAAB''',
    '''c''': '''AAABA''',
    '''d''': '''AAABB''',
    '''e''': '''AABAA''',
    '''f''': '''AABAB''',
    '''g''': '''AABBA''',
    '''h''': '''AABBB''',
    '''i''': '''ABAAA''',
    '''j''': '''BBBAA''',
    '''k''': '''ABAAB''',
    '''l''': '''ABABA''',
    '''m''': '''ABABB''',
    '''n''': '''ABBAA''',
    '''o''': '''ABBAB''',
    '''p''': '''ABBBA''',
    '''q''': '''ABBBB''',
    '''r''': '''BAAAA''',
    '''s''': '''BAAAB''',
    '''t''': '''BAABA''',
    '''u''': '''BAABB''',
    '''v''': '''BBBAB''',
    '''w''': '''BABAA''',
    '''x''': '''BABAB''',
    '''y''': '''BABBA''',
    '''z''': '''BABBB''',
    ''' ''': ''' ''',
}


lowerCamelCase_       			=   {value: key for key, value in encode_dict.items()}

def        snake_case   (     A__		):
			UpperCAmelCase_  :				Union[str, Any]      =      ""
			for letter in word.lower():
						if letter.isalpha() or letter == " ":
									encoded += encode_dict[letter]
						else:
									raise Exception("encode() accepts only letters of the alphabet and spaces"		)
			return encoded

def        snake_case   (     A__		):
			if set(A__		) - {"A", "B", " "} != set():
						raise Exception("decode() accepts only 'A', 'B' and spaces"		)
			UpperCAmelCase_  :				Dict      =      ""
			for word in coded.split():
						while len(A__		) != 0:
									decoded += decode_dict[word[:5]]
									UpperCAmelCase_  :				str      =      word[5:]
						decoded += " "
			return decoded.strip()


if __name__ == "__main__":
			from doctest import testmod

			testmod()



