    {
     "cell_type": "code",
     "execution_count": null,
     "metadata": {
      "collapsed": true
     },
     "outputs": [],
     "source": [
      "class MyLinkedList(LinkedList):\n",
      "    def partition(self, data):\n",
 
</s> remove    "execution_count": null,
 </s> add    "execution_count": 2, </s> remove    "execution_count": null,
 </s> add    "execution_count": 1, </s> remove     "        if type(data) != int:\n",
    "            raise ValueError('Invalid int argument: data')\n",
 </s> add  </s> remove    "execution_count": null,
 </s> add    "execution_count": 3, </s> remove    "outputs": [],
 </s> add    "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Test: Empty list\n",
      "Test: One element list, left list empty\n",
      "Test: Right list is empty\n",
      "Test: General case\n",
      "Success: test_partition\n"
     ]
    }
   ],
    "collapsed": false
    {
     "cell_type": "code",
     "execution_count": null,
     "metadata": {
    "collapsed": false
     },
     "outputs": [],
     "source": [
      "class MyLinkedList(LinkedList):\n",
      "    def partition(self, data):\n",
keep keep keep keep replace keep keep keep keep keep
 Reworked notebook: Added more detail to constraints and test cases.  Reworked code and unit test. 
linked-lists/partition.ipynb