Canonical interview question

Write a function in Python to check if an input string is a valid ISBN.