misc/python/morse.py
2018-08-05 18:53:07 +02:00

4 lines
166 B
Python

## Morse code golf
print(''.join([("te","mnai","ogkdwrus","cöqzycxbjpälüfvh")[len(i)-1][int(i,2)]for i in input().replace(".","1").replace("-","0").split(" ")]))