HF RL Explorer

Morse code: implement stub

Morse code: implement stub: a task in smol-software-harbor (Harbor dataset). encode(text) in morse.py is a stub. Implement it: case-insensitive, letters of a word separated by one space, words separated by " / " (any run of whitespace in the input separates words), and a character that has no…

The task

`encode(text)` in `morse.py` is a stub. Implement it: case-insensitive, letters of a word separated by one space, words separated by `" / "` (any run of whitespace in the input separates words), and a character that has no Morse code raises `ValueError`. `decode(encode(x))` should give `x` in uppercase. Run `python3…

Part of efederici/smol-software-harbor.