      "    if size >= len(string):\n",
      "        return string\n",
      "    compressed_string = list()\n",
      "    count = 0\n",
      "    last_char = string[0]\n",
      "    for char in string:\n",
      "        if char == last_char:\n",
      "            count += 1\n",
 
</s> remove     "        if char == last_char:\n",
    "            count += 1\n",
    "        else:\n",
 </s> add     "        if char != last_char:\n", </s> remove     "            count = 1\n",
 </s> add  </s> remove     "    count = 0\n",
 </s> add 
    "\n",
    "    # Create compressed_string\n",
      "    if size >= len(string):\n",
      "        return string\n",
    "\n",
    "    # Create compressed_string\n",
      "    compressed_string = list()\n",
      "    count = 0\n",
      "    last_char = string[0]\n",
      "    for char in string:\n",
      "        if char == last_char:\n",
      "            count += 1\n",
keep add keep keep keep keep keep keep
 Reworked notebook: Added more detail to clarifying questions and test cases.  Reworked algorithm discussion, code, and unit test. 
arrays-strings/compress.ipynb