




"""simple docstring"""


from typing import Literal

__A 		= 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'



def 					_lowerCamelCase(__UpperCamelCase					,				__UpperCamelCase					,				__UpperCamelCase )       ->				str:
	_lowerCAmelCase			=LETTERS if mode == """decrypt""" else key
	_lowerCAmelCase			=key if mode == """decrypt""" else LETTERS
	_lowerCAmelCase			=""""""
	# loop through each symbol in the message
	for symbol in message:
		if symbol.upper() in chars_a:
			# encrypt/decrypt the symbol
			_lowerCAmelCase			=chars_a.find(symbol.upper() )
			if symbol.isupper():
				translated += chars_b[sym_index].upper()
			else:
				translated += chars_b[sym_index].lower()
		else:
			# symbol is not in LETTERS, just add it
			translated += symbol
	return translated



def 					_lowerCamelCase(__UpperCamelCase					,				__UpperCamelCase )       ->				str:
	return translate_message(__UpperCamelCase					,				__UpperCamelCase					,				"""encrypt""" )



def 					_lowerCamelCase(__UpperCamelCase					,				__UpperCamelCase )       ->				str:
	return translate_message(__UpperCamelCase					,				__UpperCamelCase					,				"""decrypt""" )



def 					_lowerCamelCase()       ->				None:
	_lowerCAmelCase			="""Hello World"""
	_lowerCAmelCase			="""QWERTYUIOPASDFGHJKLZXCVBNM"""
	_lowerCAmelCase			="""decrypt"""  # set to 'encrypt' or 'decrypt'

	if mode == "encrypt":
		_lowerCAmelCase			=encrypt_message(__UpperCamelCase					,				__UpperCamelCase )
	elif mode == "decrypt":
		_lowerCAmelCase			=decrypt_message(__UpperCamelCase					,				__UpperCamelCase )
	print(F'''Using the key {key}, the {mode}ed message is: {translated}''' )


if __name__ == "__main__":
			import doctest

			doctest.testmod()
			main()





"""simple docstring"""


def 					_lowerCamelCase(__UpperCamelCase					,				__UpperCamelCase					,				__UpperCamelCase )       ->				float:
	if mass < 0:
		raise ValueError("""The mass of the body cannot be negative""" )
	if radius <= 0:
		raise ValueError("""The radius is always a positive non zero integer""" )
	return (mass * (velocity) ** 2) / radius


if __name__ == "__main__":
			import doctest

			doctest.testmod(verbose=True)



