Sign in to test your solution.
def isISBN(code): """ Returns True is the argument is a string that contains a valid ISBN-10 code, False otherwise. >>> isISBN('9971502100') True >>> isISBN('9971502108') False >>> isISBN('53WKEFF2C') False >>> isISBN(4378580136) False """ if __name__ == '__main__': import doctest doctest.testmod()

  Python sandbox

This window allows you to run Python code without installing a thing. The code you write here is not automatically submitted to Dodona.

Test case being debugged