     },
     "outputs": [],
     "source": [
      "def insertion_sort(data):\n",
      "    if len(data) < 2:\n",
      "        return\n",
      "    for r in range(1, len(data)):\n",
      "        for l in range(0, r):\n",
      "            if data[l] > data[r]:\n",
      "                temp = data[r]\n",
 
</s>
    "    if data is None or len(data) < 2:\n",
     },
     "outputs": [],
     "source": [
      "def insertion_sort(data):\n",
    "    if data is None or len(data) < 2:\n",
      "        return\n",
      "    for r in range(1, len(data)):\n",
      "        for l in range(0, r):\n",
      "            if data[l] > data[r]:\n",
      "                temp = data[r]\n",
keep keep keep keep replace keep keep keep keep keep
 Add None input test case to insertion sort
sorting_searching/insertion_sort/insertion_sort_solution.ipynb