lördag 7 december 2013

Checkio: Non-unique elements

My solution for the second problem (called Non-unique elements) in checkio:
def checkio(data):
    return [x for x in data if data.count(x) >= 2]

Inga kommentarer:

Skicka en kommentar