Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Second solution in Clear category for Morse Clock by zwerkoff
def checkio(time_string: str) -> str:
to_bin = lambda x: f'{int(x[0]):03b} {int(x[1]):04b}'
return ' : '.join([to_bin(i) if len(i) == 2 else to_bin('0' + i) for i in time_string.split(':')]).replace('1', '-').replace('0', '.')[1:]
Sept. 23, 2020
Comments: