Python
Python copied to clipboard
Added checkISBN
Describe your change:
- [x] Add an algorithm?
- [ ] Fix a bug or typo in an existing algorithm?
- [ ] Documentation change?
Checklist:
- [x] I have read CONTRIBUTING.md.
- [x] This pull request is all my own work -- I have not plagiarized.
- [x] I know that pull requests will not be merged if they fail the automated tests.
- [x] This PR only changes one algorithm file. To ease review, please open separate PRs for separate algorithms.
- [x] All new Python files are placed inside an existing directory.
- [x] All functions and variable names follow Python naming conventions.
- [x] All function parameters and return values are annotated with Python type hints.
ISBNs are 13-digit from 2007 and begin with 9-7-8 or 9-7-9 (says Wikipedia). The ISBN must be sliced, if length is 13 and first 3 digits are correct.
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
In preparation for that denial-of-service attack that is Hacktoberfest, I am closing all pull requests that do not have passing tests.