pyBegin / projects / morsecode-translator
🔐

Morse Code Translator

Encrypts plain text into Morse code and decrypts Morse code back into text using a Morse code dictionary. The main() function runs a hard-coded dem…

119 linesRunnable

Morse Code Translator

Encrypts plain text into Morse code and decrypts Morse code back into text using a Morse code dictionary. The main() function runs a hard-coded demonstration of both operations.

Example

-- .-. .. -. .- -. -.- -....- -... .... --- .-- -- .. -.-. -.-
MRINANK-BHOWMICK

The hard-coded main() encrypts "Mrinank-Bhowmick" to Morse code and then decrypts it back to the original text.

How to run on localhost

python main.py

Dependencies

Standard library only.