      }
     ],
     "source": [
      "from nose.tools import assert_equal\n",
      "\n",
      "\n",
      "class Test(object):\n",
      "    \n",
 
</s> remove       "Test: Empty list\n",
      "Test: k >= len(list)\n",
      "Test: One element, k = 0\n",
      "Test: General case\n",
      "Success: test_kth_to_last_elem\n"
 </s> add       "Overwriting test_kth_to_last_elem.py\n" </s> remove     "    test.test_kth_to_last_elem()"
 </s> add     "    test.test_kth_to_last_elem()\n",
    "    \n",
    "if __name__ == '__main__':\n",
    "    main()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 4,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Test: Empty list\n",
      "Test: k >= len(list)\n",
      "Test: One element, k = 0\n",
      "Test: General case\n",
      "Success: test_kth_to_last_elem\n"
     ]
    }
   ],
   "source": [
    "%run -i test_kth_to_last_elem.py" </s> remove     "if __name__ == '__main__':\n",
 </s> add     "def main():\n",
    "%%writefile test_kth_to_last_elem.py\n",
      }
     ],
     "source": [
    "%%writefile test_kth_to_last_elem.py\n",
      "from nose.tools import assert_equal\n",
      "\n",
      "\n",
      "class Test(object):\n",
      "    \n",
keep keep add keep keep keep keep keep
 Added kth to last element challenge. 
linked_lists/kth_to_last_elem/kth_to_last_elem_solution.ipynb