This project provides a simple Python program to encode text into Morse code and decode Morse code back into text. It includes exception handling for invalid characters and offers default values when no input is provided.
- Encoding: Convert plain text into Morse code.
- Decoding: Convert Morse code back into plain text.
- Exception Handling: Handles invalid characters gracefully.
- Default Values: If no input is provided, it uses default values ('SOS' for encoding and '... --- ...' for decoding).
- Ensure you have Python installed on your machine.
- Download the
morse_code.py
file.
Run the script directly from the command line:
python morse_code.py