     "source": [
      "def selection_sort_iterative(data):\n",
      "    if len(data) == 0 or len(data) == 1:\n",
      "        return\n",
      "    for i in xrange(0, len(data) - 1):\n",
      "        swap(data, i, find_min_index(data, i))"
     ]
    },
    {
     "cell_type": "markdown",
 
</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(start + 1, len(data)):\n",
 </s> add     "    for i in range(start + 1, len(data)):\n", </s> remove     "    for i in xrange(0, len(data)):\n",
 </s> add     "    for i in range(0, len(data)):\n", </s> remove     "    for i in xrange(1, cycles+1):\n",
 </s> add     "    for i in range(1, cycles+1):\n", </s> remove     "    for _ in xrange(n):\n",
 </s> add     "    for _ in range(n):\n",
    "    for i in range(0, len(data) - 1):\n",
     "source": [
      "def selection_sort_iterative(data):\n",
      "    if len(data) == 0 or len(data) == 1:\n",
      "        return\n",
    "    for i in range(0, len(data) - 1):\n",
      "        swap(data, i, find_min_index(data, i))"
     ]
    },
    {
     "cell_type": "markdown",
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