Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
simple solution in Clear category for Morse Clock by kdim
def checkio(s: str) -> str:
s = sum([list(map(int, i.zfill(2))) for i in s.split(':')], [])
return '{:02b} {:04b} : {:03b} {:04b} : {:03b} {:04b}'.format(*s).replace('1', '-').replace('0', '.')
Jan. 28, 2021
Comments: