@@ -0,0 +1,488 @@
+import sys%0A%0Adef luhn_checksum(card_number):%0A    def digits_of(n):%0A        return %5Bint(d) for d in str(n)%5D%0A    digits = digits_of(card_number)%0A    odd_digits = digits%5B-1::-2%5D%0A    even_digits = digits%5B-2::-2%5D%0A    checksum = 0%0A    checksum += sum(odd_digits)%0A    for d in even_digits:%0A        checksum += sum(digits_of(d*2))%0A    return checksum %25 10%0A%0Adef is_luhn_valid(card_number):%0A    return luhn_checksum(card_number) == 0%0A%0Afor arg in sys.argv%5B1:%5D:%0A    print is_luhn_valid(int(arg))%0A    %0A

add luhn algorithm