checkdigit.isbn.validate¶
- checkdigit.isbn.validate(data: str) bool [source]¶
Validates ISBN check digits.
- Parameters:
data – A string of characters representing a fall ISBN code
- Returns:
- A boolean representing whether the
check digit validates the data or non
- Return type:
bool
Examples
>>> from checkdigit import isbn >>> # ISBN-10 >>> isbn.validate("0198526636") True >>> # ISBN-13 >>> isbn.validate("978-1-56619-909-4") True