






'''simple docstring'''


from typing import Literal

SCREAMING_SNAKE_CASE_					=							"ABCDEFGHIJKLMNOPQRSTUVWXYZ"






def   lowerCAmelCase__			(					SCREAMING_SNAKE_CASE__       ,		SCREAMING_SNAKE_CASE__       ,		SCREAMING_SNAKE_CASE__		):
 __a    :	int									=						LETTERS if mode == 'decrypt' else key
 __a    :	Dict									=						key if mode == 'decrypt' else LETTERS
 __a    :	Any									=						''
 # loop through each symbol in the message
 for symbol in message:
  if symbol.upper() in chars_a:
   # encrypt/decrypt the symbol
   __a    :	List[Any]									=						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__			(					SCREAMING_SNAKE_CASE__       ,		SCREAMING_SNAKE_CASE__		):
 return translate_message(a_       ,		a_       ,		'encrypt'		)






def   lowerCAmelCase__			(					SCREAMING_SNAKE_CASE__       ,		SCREAMING_SNAKE_CASE__		):
 return translate_message(a_       ,		a_       ,		'decrypt'		)






def   lowerCAmelCase__			(					):
 __a    :	List[str]									=						'Hello World'
 __a    :	Tuple									=						'QWERTYUIOPASDFGHJKLZXCVBNM'
 __a    :	List[str]									=						'decrypt'  # set to 'encrypt' or 'decrypt'

 if mode == "encrypt":
  __a    :	Tuple									=						encrypt_message(a_       ,		a_		)
 elif mode == "decrypt":
  __a    :	Optional[Any]									=						decrypt_message(a_       ,		a_		)
 print(f'''Using the key {key}, the {mode}ed message is: {translated}'''		)


if __name__ == "__main__":
  import doctest

  doctest.testmod()
  main()












'''simple docstring'''


def   lowerCAmelCase__			(					SCREAMING_SNAKE_CASE__		):
 if len(SCREAMING_SNAKE_CASE__		) <= 1:
  return data
 else:
  return [
      *quick_sort([e for e in data[1:] if e <= data[0]]		),
      data[0],
      *quick_sort([e for e in data[1:] if e > data[0]]		),
  ]


if __name__ == "__main__":
  import doctest

  doctest.testmod()




