ciphers.morse_code ================== .. py:module:: ciphers.morse_code .. autoapi-nested-parse:: Python program to translate to and from Morse code. https://en.wikipedia.org/wiki/Morse_code Attributes ---------- .. autoapisummary:: ciphers.morse_code.MORSE_CODE_DICT ciphers.morse_code.REVERSE_DICT Functions --------- .. autoapisummary:: ciphers.morse_code.decrypt ciphers.morse_code.encrypt ciphers.morse_code.main Module Contents --------------- .. py:function:: decrypt(message: str) -> str >>> decrypt('... --- ... -.-.--') 'SOS!' .. py:function:: encrypt(message: str) -> str >>> encrypt("Sos!") '... --- ... -.-.--' >>> encrypt("SOS!") == encrypt("sos!") True .. py:function:: main() -> None >>> s = "".join(MORSE_CODE_DICT) >>> decrypt(encrypt(s)) == s True .. py:data:: MORSE_CODE_DICT .. py:data:: REVERSE_DICT