     "outputs": [],
     "source": [
      "def find_min_index(data, start):\n",
      "    min_index = start\n",
      "    for i in xrange(start + 1, len(data)):\n",
      "        if data[i] < data[min_index]:\n",
      "            min_index = i\n",
      "    return min_index\n",
      "\n",
      "def swap(data, i, j):\n",
 
</s> remove     "    for l in xrange(lower, upper + 1):\n",
    "        for u in xrange(lower, upper + 1):\n",
 </s> add     "    for l in range(lower, upper + 1):\n",
    "        for u in range(lower, upper + 1):\n", </s> remove     "    for i in xrange(0, len(data) - 1):\n",
 </s> add     "    for i in range(0, len(data) - 1):\n", </s> remove     "    for r in xrange(1, len(data)):\n",
    "        for l in xrange(0, r):\n",
 </s> add     "    for r in range(1, len(data)):\n",
    "        for l in range(0, r):\n", </s> remove     "    for i in xrange(0, len(data)):\n",
 </s> add     "    for i in range(0, len(data)):\n", </s> remove     "    for _ in xrange(n):\n",
 </s> add     "    for _ in range(n):\n",
    "    for i in range(start + 1, len(data)):\n",
     "outputs": [],
     "source": [
      "def find_min_index(data, start):\n",
      "    min_index = start\n",
    "    for i in range(start + 1, len(data)):\n",
      "        if data[i] < data[min_index]:\n",
      "            min_index = i\n",
      "    return min_index\n",
      "\n",
      "def swap(data, i, j):\n",
keep keep keep keep replace keep keep keep keep keep
 Changed xrange to range to be compatible with Python 3. 
sorting_searching/selection_sort/selection_sort_solution.ipynb