



"""simple docstring"""


from typing import Literal

snake_case_         = """ABCDEFGHIJKLMNOPQRSTUVWXYZ"""

def 				_lowerCAmelCase   (     lowercase_	,			lowercase_	,			lowercase_		):
						UpperCAmelCase    =				LETTERS if mode == 'decrypt' else key
						UpperCAmelCase    =				key if mode == 'decrypt' else LETTERS
						UpperCAmelCase    =				''
						# loop through each symbol in the message
						for symbol in message:
												if symbol.upper() in chars_a:
																		# encrypt/decrypt the symbol
																		UpperCAmelCase    =				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   (     lowercase_	,			lowercase_		):
						return translate_message(lowercase_	,			lowercase_	,			'encrypt'		)

def 				_lowerCAmelCase   (     lowercase_	,			lowercase_		):
						return translate_message(lowercase_	,			lowercase_	,			'decrypt'		)

def 				_lowerCAmelCase   (     ):
						UpperCAmelCase    =				'Hello World'
						UpperCAmelCase    =				'QWERTYUIOPASDFGHJKLZXCVBNM'
						UpperCAmelCase    =				'decrypt'  # set to 'encrypt' or 'decrypt'

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


if __name__ == "__main__":
				import doctest

				doctest.testmod()
				main()










"""simple docstring"""


from math import exp

def 				_lowerCAmelCase   (     lowercase_		):
						return 8 * x - 2 * exp(-x		)

def 				_lowerCAmelCase   (     lowercase_	,			lowercase_	,			lowercase_		):
						UpperCAmelCase    =				lower_bound
						UpperCAmelCase    =				upper_bound
						for _ in range(0	,			lowercase_		):
												UpperCAmelCase   ,					UpperCAmelCase    =				xa, xa - (f(lowercase_		) * (xa - xa)) / (f(lowercase_		) - f(lowercase_		))
						return xa


if __name__ == "__main__":
				print(f'''Example: {secant_method(1, 3, 2)}''')





