Skip to content

Commit 898ffd7

Browse files
committed
Update isbn_verifier.py
1 parent da97d5a commit 898ffd7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

isbn-verifier/isbn_verifier.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def is_valid(isbn: str) -> bool:
5151
if not all(char in ISBN for char in isbn.replace("-", "")) or not isbn:
5252
return False
5353
# 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:
54+
if "X" in isbn and isbn.index("X") != len(isbn) - 1:
5555
return False
5656

5757
# Convert all isbn chars to digits

0 commit comments

Comments
 (0)