Decode the Morse code, advanced (Codewars 4kyu Python)
InthiskatayouhavetowriteaMorsecodedecoderforwiredelectricaltelegraph.Electrictelegraphisoperatedona2-wirelinewithakeythat,whenpressed,connectsthewirestogether,whichcanbedetectedonaremotestation.The