Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for CheckSum by mozurin
def checkio(code):
cd = sum(
ord(c) - 48 if n % 2 else sum(map(int, str((ord(c) - 48) * 2)))
for n, c in enumerate(c for c in reversed(code) if c.isalnum())
)
return [str((10 - cd % 10) % 10), cd]
June 17, 2016