Based on modification codebase and adding classes and functions you should implement a morse code translator.
You can read more here.
- Stage 1: Write code for
islatin
andismorse
to fix tests. - Stage 2: Create functions and test for them to translate sentences (or for one characters).
- Stage 3: Implement validator for latin and morse sentences.
- Stage 4: Use your imagination (e.g. add some encryption, extend characters).
translator.py
Main code file, this is entry point of your program.consts.py
Here you can get mapping for morse code characters.tests/test_translator.py
Initial tests for program.
You should start by read what was implemented already. Translator should detect
which type of characters where provided. Try implement islatin
and ismorse
functions
to successful detect that. Then start thinking about translating functions and what cases
you should implement.
Program execution is correct when you see translated text in terminal.