ISBN13 check digit: Difference between revisions
Content added Content deleted
(→{{header|Python}}: Pruned out an import, cycled lambdas rather than integers) |
|||
Line 1,692: | Line 1,692: | ||
'''Test strings for ISBN-13 validity.''' |
'''Test strings for ISBN-13 validity.''' |
||
print('\n'.join( |
print('\n'.join( |
||
repr((s, isISBN13(s))) for s |
repr((s, isISBN13(s))) for s |
||
in ["978-1734314502", |
in ["978-1734314502", |
||
Line 1,699: | Line 1,699: | ||
"978-1788399083" |
"978-1788399083" |
||
] |
] |
||
)) |
|||