Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
2 liner solution in Creative category for Morse Clock by OrginalS
def checkio(t):
res = "".join([format(int(i), "#06b")[2:].replace("0", ".").replace("1", "-") + " " for i in "".join([elm if len(elm) == 2 else "0"+elm for elm in t.split(":")])])
return res[2:10] + ": " + res[11:20] + ": " + res[21:-1]
Sept. 10, 2019
Comments: