We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent da97d5a commit 898ffd7Copy full SHA for 898ffd7
isbn-verifier/isbn_verifier.py
@@ -51,7 +51,7 @@ def is_valid(isbn: str) -> bool:
51
if not all(char in ISBN for char in isbn.replace("-", "")) or not isbn:
52
return False
53
# In case X is present, it should be at the end of the string only
54
- if 'X' in isbn and isbn.index('X') != len(isbn) - 1:
+ if "X" in isbn and isbn.index("X") != len(isbn) - 1:
55
56
57
# Convert all isbn chars to digits
0 commit comments