Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion isbn-verifier/isbn_verifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def is_valid(isbn: str) -> bool:
if not all(char in ISBN for char in isbn.replace("-", "")) or not isbn:
return False
# In case X is present, it should be at the end of the string only
if 'X' in isbn and isbn.index('X') != len(isbn) - 1:
if "X" in isbn and isbn.index("X") != len(isbn) - 1:
return False

# Convert all isbn chars to digits
Expand Down