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 Tue 01 Nov, 22:00
  1. ISBN Not yet solved
  2. Triton City Not yet solved
  3. Twice true Not yet solved
  4. Silent trade Not yet solved
  5. Whereabouts Not yet solved
  6. Rövarspråket Not yet solved
Next series first evaluation (group 1) - eerste evaluatie (groep 1)
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()