Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
3-liner: based on Tinus_Trotyl's solution in Creative category for Morse Decoder by przemyslaw.daniel
def morse_decoder(c,k="y7ac-it-oe4gw5qr1zx-jb-p-6kf0du9-s--m--n2lv-3h---8"):
return ' '.join(''.join(k[int('1'+i.replace('.','3').replace('-','0'),6)%52]
for i in j.split()) for j in c.split(' ')).capitalize()
June 5, 2018
Comments: