Functions
Functions
What is ISBN-13
1. Prefix: The ISBN-13 begins with a three-digit prefix known as the “Book-
land” or “country code.” This prefix identifies the language or geographic
area of the publisher.
For example:
1. Sum of products: (9 ∗ 1) + (7 ∗ 3) + (8 ∗ 1) + (0 ∗ 3) + (3 ∗ 1) + (0 ∗ 3) + (6 ∗
1) + (4 ∗ 3) + (0 ∗ 1) + (6 ∗ 3) + (1 ∗ 1) + (5 ∗ 3) = 143.
2. Remainder when divided by 10: 143 % 10 = 3.
1
3. Check digit: 10 - 3 = 7.
Assignment - 1
Assignment - 2
After completing your assignment check whether your code works with the fol-
lowing ISBN
1. 9781108951562
2. 9789812593174