Skip to content
Advertisement

I have a TypeError in Python

JavaScript

Products Class code

JavaScript

ProductsImplementation class code

JavaScript

Below is the error I get when I try to run this

JavaScript

Advertisement

Answer

You forgot to provide the arguments to the add_product method. Change the last line to:

JavaScript
User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement