class Myclass(list):
    def remove_max(self):
        self.remove(max(self))
l = [1,2,3]
object = Myclass(l)
object.remove_max()
print(object)
in Myclass which inherits from class list why does the Myclass(l) assign the object a value [1,2,3]? And even if we gave it a string say 'abc' instead of list l as an input why is the value of object set as the list ['a'. 'b']?

object = Myclass(l)assigns[1,2,3]as the list constructor would. The next line removes the element3.