"""simple docstring"""







from typing import Literal

_SCREAMING_SNAKE_CASE	:		Dict   =   '''ABCDEFGHIJKLMNOPQRSTUVWXYZ'''



def       A__    (	lowercase_     :	str      , lowercase_     :	str      , lowercase_     :	Literal["encrypt", "decrypt"]						)  ->							Tuple:
   __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       A__    (	lowercase_     :	str      , lowercase_     :	str						)  ->							Any:
   return translate_message(__a      , __a      , 'encrypt'						)



def       A__    (	lowercase_     :	str      , lowercase_     :	str						)  ->							Union[str, Any]:
   return translate_message(__a      , __a      , 'decrypt'						)



def       A__    (	)  ->							Tuple:
   __lowerCamelCase    		=					'Hello World'
   __lowerCamelCase    		=					'QWERTYUIOPASDFGHJKLZXCVBNM'
   __lowerCamelCase    		=					'decrypt'  # set to 'encrypt' or 'decrypt'

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


if __name__ == "__main__":
     import doctest

     doctest.testmod()
     main()











from collections import defaultdict

def       A_   (						__a  :					str		):

				"""simple docstring"""
				a__					   =		defaultdict(__a		)
				# Creating a dictionary containing count of each word
				for word in sentence.split():
								occurrence[word] += 1
				return occurrence


if __name__ == "__main__":
	for word, count in word_occurrence("""INPUT STRING""").items():
		print(f"""{word}: {count}""")

