Morse decode by zetamatta

import os
M=dict([(x[1:],x[0])for x in '''b-...
,--..--
c-.-.
f..-.
h....
j.---
l.-..
p.--.
q--.-
v...-
x-..-
y-.--
z--..
g--.
r.-.
s...
u..-
w.--
d-..
k-.-
o---
a.-
m--
i..
n-.
t-
e.
..-.-.-
  '''.split("\n")])
for w in os.read(0,9999)[:-1].replace(" ","/ /").split("/"):os.write(1,M[w])

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page