override the definition of display (but we leave it as projectthe method self display is used to trace the program any call self display(levelto print where the level is less than or equal to the value for max display level will be printed the to print can be anything that is accepted by the built-in print (including any keyword argumentsthe definition of display isdisplay py - simple way to trace the intermediate steps of algorithms class displayable(object)"""class that uses 'displaythe amount of detail is controlled by max_display_level ""max_display_level can be overridden in subclasses def display(self,level,*args,**nargs)"""print the arguments if level is less than or equal to the current max_display_level level is an integer the other arguments are whatever arguments print can take ""if level <self max_display_levelprint(*args**nargs##if error you are using python not python note that args gets tuple of the positional argumentsand nargs gets dictionary of the keyword argumentsthis will not work in python and will give an error any class that wants to use display can be made subclass of displayable to change the maximum display level to say for class doclassname max display level which will make calls to display in that class print when the value of level is less than-or-equal to the default display level is it can also be changed for individual objects (the object value overrides the class valuethe value of max display level by convention is display nothing display solutions (nothing that happens repeatedly also display the values as they change (little detail through loop also display more details and above even more detail version june