Task
Define a function tap_code_to_english that takes one parameter:
|
|
|
|
|
|
|
".. ... .. .... .. ... .. ...."
|
When called, the function should return the converted sentence. Items within the string should be represented as the following:
- Letters: 1-5 dots followed by a space, followed by 1-5 dots e.g. “. ..” = “b”
- End of letter / start of new letter: two spaces e.g. “. .. . ..” = “bb”
- End of word / start of new word: three spaces “.. … .. …. .. … .. ….” = “hi hi”