Spring naar hoofdinhoud
05. functions 0 van 8 activiteiten opgelost
  1. Test-driven development Nog niet gelezen
  2. Debugging the source code (part 2) Nog niet gelezen
  3. ISBN Nog niet opgelost
  4. Noah's headache Nog niet opgelost
  5. Persistence Nog niet opgelost
  6. Letter Boxed Nog niet opgelost
  7. Writing's on the wall Nog niet opgelost
  8. Tap code Nog niet opgelost
Volgende reeks 06. lists and tuples
05. functions

ISBN

Meld je aan om je oplossing in te dienen en feedback te krijgen.

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()