Python icon indicating copy to clipboard operation
Python copied to clipboard

Added checkISBN

Open patrick-steve opened this issue 4 years ago • 2 comments

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.

patrick-steve avatar Oct 18 '21 10:10 patrick-steve

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.

Rohanrbharadwaj avatar Oct 18 '21 12:10 Rohanrbharadwaj

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.

stale[bot] avatar May 02 '22 15:05 stale[bot]

In preparation for that denial-of-service attack that is Hacktoberfest, I am closing all pull requests that do not have passing tests.

cclauss avatar Oct 01 '22 10:10 cclauss