

'''simple docstring'''





_UpperCAmelCase	:     List[str]		       = {
    """A""": """.-""", """B""": """-...""", """C""": """-.-.""", """D""": """-..""", """E""": """.""", """F""": """..-.""", """G""": """--.""",
    """H""": """....""", """I""": """..""", """J""": """.---""", """K""": """-.-""", """L""": """.-..""", """M""": """--""", """N""": """-.""",
    """O""": """---""", """P""": """.--.""", """Q""": """--.-""", """R""": """.-.""", """S""": """...""", """T""": """-""", """U""": """..-""",
    """V""": """...-""", """W""": """.--""", """X""": """-..-""", """Y""": """-.--""", """Z""": """--..""", """1""": """.----""",
    """2""": """..---""", """3""": """...--""", """4""": """....-""", """5""": """.....""", """6""": """-....""", """7""": """--...""",
    """8""": """---..""", """9""": """----.""", """0""": """-----""", """&""": """.-...""", """@""": """.--.-.""",
    """:""": """---...""", """,""": """--..--""", """.""": """.-.-.-""", """'""": """.----.""", """\"""": """.-..-.""",
    """?""": """..--..""", """/""": """-..-.""", """=""": """-...-""", """+""": """.-.-.""", """-""": """-....-""",
    """(""": """-.--.""", """)""": """-.--.-""", """!""": """-.-.--""", """ """: """/"""
}  # Exclamation mark is not in ITU-R recommendation
# fmt: on
_UpperCAmelCase	:     Tuple		       = {value: key for key, value in MORSE_CODE_DICT.items()}





def       __lowerCamelCase			(				UpperCamelCase__   ):







							'''simple docstring'''






							return " ".join(MORSE_CODE_DICT[char] for char in message.upper()   )





def       __lowerCamelCase			(				UpperCamelCase__   ):







							'''simple docstring'''






							return "".join(REVERSE_DICT[char] for char in message.split()   )





def       __lowerCamelCase			(				):







							'''simple docstring'''






							snake_case_           =					'Morse code here!'
							print(UpperCamelCase__   )
							snake_case_           =					encrypt(UpperCamelCase__   )
							print(UpperCamelCase__   )
							snake_case_           =					decrypt(UpperCamelCase__   )
							print(UpperCamelCase__   )


if __name__ == "__main__":
					main()







def       __lowerCamelCase			(				UpperCamelCase__   ):







							'''simple docstring'''






							if not nums:  # Makes sure that the list is not empty
														raise ValueError('List is empty'   )

							snake_case_           =					sum(UpperCamelCase__   ) / len(UpperCamelCase__   )  # Calculate the average
							return sum(abs(x - average   ) for x in nums   ) / len(UpperCamelCase__   )


if __name__ == "__main__":
					import doctest

					doctest.testmod()




