Morse decode by SeeNoEvil

o=[]
for m in raw_input().replace(" ","/ /").split("/"):o+=" abcdefghijklmnopqrstuvwxyz.,"[" |.-|-...|-.-.|-..|.|..-.|--.|....|..|.---|-.-|.-..|--|-.|---|.--.|--.-|.-.|...|-|..-|...-|.--|-..-|-.--|--..|.-.-.-|--..--".split("|").index(m)]
print"".join(o)

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

download

return to the top page