Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Minimal solution in Creative category for Morse Clock by vikulin
FORMAT = '{:0>2b} {:0>4b} : {:0>3b} {:0>4b} : {:0>3b} {:0>4b}'
MAP = str.maketrans('01', '.-')
def checkio(time):
t = [s for n in time.split(':') for s in divmod(int(n),10)]
return FORMAT.format(*t).translate(MAP)
Sept. 30, 2014