Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Second solution in Clear category for CheckSum by gyahun_dash
def checkio(data):
codes = enumerate(ord(c) - 48 for c in reversed(data) if c.isalnum())
csum = sum(sum(divmod(c * 2, 10)) if i % 2 == 0 else c for i, c in codes)
return [str(-csum % 10), csum]
April 19, 2014
Comments: