How to pass an input argument when creating an instance of a class?
The problem in your initial definition of the class is that you’ve written: class name(object, name): This means that the class inherits the base class called “object”, and the base class called “name”. However, there is no base class called “name”, so it fails. Instead, all you need to do is have the variable in … Read more