Practicing Python | Think Python: Case study: interface design – Exercise 4.3

Below are my solutions for the exercises 4.3

Book: