The makeCatalog function that we create in this chapter has a couple of significant errors. There
Question:
The makeCatalog function that we create in this chapter has a couple of significant errors.
• There should be a space in the title after the colon and before the product name. Fix that.
• The grammar of the example is awful, because the product we provided is plural (“Seahorses”) but the text assumes a singular product. Fix it so that the text is right for the number of the input. There are several ways to fix this problem. One way is to take in a boolean input for singular or plural, then change the text accordingly. Another way is to create two catalog page generators, one for singular and one for plural, then let the user decide which to use. Implement one of these.
Step by Step Answer:
Introduction To Computing And Programming In Python A Multimedia Approach
ISBN: 9780134025544
4th Edition
Authors: Mark J. Guzdial, Barbara Ericson