lördag 7 december 2013

Checkio: Extra dashes

My solution for the first problem in Checkio (http://www.checkio.com)
def checkio(line):
    return "-".join([x for x in line.split("-") if x != ""])

Inga kommentarer:

Skicka en kommentar