





'''simple docstring'''
from typing import Literal

a__							:							str			='''ABCDEFGHIJKLMNOPQRSTUVWXYZ'''
def     lowercase__       (       __lowercase						:  str    ,  __lowercase						:  str    ,  __lowercase						:  Literal["encrypt", "decrypt"]					)			->				str:



       """simple docstring"""






       __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     lowercase__       (       __lowercase						:  str    ,  __lowercase						:  str					)			->				str:



       """simple docstring"""






       return translate_message(__lowercase    ,  __lowercase    ,  'encrypt'					)
def     lowercase__       (       __lowercase						:  str    ,  __lowercase						:  str					)			->				str:



       """simple docstring"""






       return translate_message(__lowercase    ,  __lowercase    ,  'decrypt'					)
def     lowercase__       (       )			->				None:



       """simple docstring"""






       __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'''
def     lowercase__       (       __lowercase						:  int = 20					)			->				int:



       """simple docstring"""






       try:
              __UpperCamelCase	=  int(__lowercase					)
       except (TypeError, ValueError):
              raise TypeError('Parameter n must be int or castable to int.'					)
       if n <= 0:
              raise ValueError('Parameter n must be greater than or equal to one.'					)
       __UpperCamelCase	=  0
       while 1:
              i += n * (n - 1)
              __UpperCamelCase	=  0
              for j in range(2    ,  __lowercase					):
                     if i % j != 0:
                            __UpperCamelCase	=  1
                            break
              if nfound == 0:
                     if i == 0:
                            __UpperCamelCase	=  1
                     return i
       return None


if __name__ == "__main__":
    print(f'{solution() = }')
