Trying to implement increasing list of class! Can someone help me with the solution!
class increasinglist:

 def append(self, val):

 """ first, it removes all elements from the list that have greater values than val, starting from the last one, and once there are no greater element in the list, it appends val to the end of the list """ 
      pass 

 def pop(self):
 """ removes the last element from the list if the list is not empty, otherwise, if the list is empty, it does nothing """ 
      pass 

 def __len__(self):
returns the number of elements in the list """ 
        return 0 
Comments (0)