      "        self.num_items = 0\n",
      "        super(StackWithCapacity, self).__init__(top)\n",
      "\n",
      "    def push(self, data):\n",
      "        if self.num_items < self.capacity:\n",
      "            super(StackWithCapacity, self).push(data)\n",
      "            self.num_items += 1\n",
      "        else:\n",
      "            raise Exception('Stack full')\n",
      "\n",
      "    def pop(self):\n",
      "        data = super(StackWithCapacity, self).pop()\n",
      "        self.num_items -= 1\n",
 
</s> remove     "        super(StackWithCapacity, self).__init__(top)\n",
 </s> add  </s> remove     "        data = super(StackWithCapacity, self).pop()\n",
 </s> add  </s> remove     "        return data\n",
 </s> add     "        return super(StackWithCapacity, self).pop()\n",
    "        if self.is_full():\n",
      "        self.num_items = 0\n",
      "        super(StackWithCapacity, self).__init__(top)\n",
      "\n",
      "    def push(self, data):\n",
    "        if self.is_full():\n",
    "        if self.is_full():\n",
    "        if self.is_full():\n",
    "        if self.is_full():\n",
      "            raise Exception('Stack full')\n",
      "\n",
      "    def pop(self):\n",
      "        data = super(StackWithCapacity, self).pop()\n",
      "        self.num_items -= 1\n",
keep keep keep keep replace replace replace replace keep keep keep keep keep
 Polish set of stacks solution 
stacks_queues/set_of_stacks/set_of_stacks_solution.ipynb