Skip to main content

This course is archived · This course is now in read-only mode. You can’t register or make new submissions anymore, but your previous work and results are still available.

05. functions - functies 0 of 6 activities solved Deadline Fri 30 Oct, 22:00
  1. ISBN Not yet solved
  2. Noah's headache Not yet solved
  3. Jupiter-C Not yet solved
  4. Persistence Not yet solved
  5. Mlecchita vikalpa Not yet solved
  6. Tap code Not yet solved
Next series 06. lists and tuples - lijsten en tuples
05. functions - functies

ISBN

This course is archived, so you can no longer hand in solutions.

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