A simple interactive Python program that converts text into Morse code.
- Converts letters (A-Z) and numbers (0-9) into Morse code
- Interactive console input
- Unsupported characters (e.g. punctuation) are left unchanged in the output
- Handles empty input gracefully
python main.pyEnter text to convert to Morse code: SOS 123 Morse code: ... --- ... / .---- ..--- ...--
morse-code-converter/ ├── main.py # Program logic and entry point ├── morse_dictionary.py # Morse code lookup table └── README.md
- Structuring a Python project into modules, separating data (the Morse dictionary) from logic (the conversion function)
- Using dictionaries for lookup-based logic, including
.get()with a default fallback value - Handling edge cases such as empty input and unsupported characters
- Git/GitHub workflow: staging, committing, and pushing changes with meaningful commit messages