Delete repeated characters =========================== #. Write the function :py:func:`delete_repeated` that takes a string, and returns another string where all the repeated characters in the first string have been deleted. Save this function into file ``delete_repeated1.py``. Examples: .. literalinclude:: test-delete1.txt :language: python3 :lines: 2- .. note:: More tests are provided in file :download:`test-delete1.txt ` .. rubric:: Solution A solution of these functions is provided in file :download:`delete_repeated1.py ` #. Write the function :py:func:`delete_repeated_cons` that takes a string, and returns another string where only the *repeated consecutive characters* have been removed from the given string. Save the function into file ``delete_repeated2.py``. Examples: .. literalinclude:: test-delete2.txt :language: python3 :lines: 2- .. note:: More tests are provided in file :download:`test-delete2.txt ` .. rubric:: Solution A solution of these functions is provided in files :download:`delete_repeated2.py `