Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Weird defaults solution in Creative category for Morse Decoder by veky
morse = str.maketrans('.-', '01')
def dm(u):
if len(u) == 5: return str(u.count('.') * (-1)**u.startswith('-') % 10)
return ' etianmsurwdkgohvfüläpjbxcyzq'[int('0b1' + u.translate(morse), 0)]
def morse_decoder(code):
return ''.join(map(dm, code.replace(' '*3, ' '*2).split(' '))).capitalize()
March 24, 2018
Comments: