Stars ===== #. Write function :py:func:`stars1` that takes a string and, if it has an even number of characters, returns a string equal to the given one but with two stars (asterisks) in the middle. If the given string has an odd number of characters, this function returns a string equal to the given one but with a star at the beginning and another one at the end. Save this function into a file named ``stars1.py``. See the following examples: .. literalinclude:: test-stars1.txt :language: python3 :lines: 3- .. note:: More tests are provided in the :download:`test-stars1.txt` file. #. Write function :py:func:`stars2` that takes a string, and returns another string computed by interleaving stars between each pair of consecutive characters of the given string. Save this function into a file named ``stars2.py``. See the following examples: .. literalinclude:: test-stars2.txt :language: python3 :lines: 3- .. note:: More tests are provided in the :download:`test-stars2.txt` file. .. rubric:: Solution Solutions are provided in the :download:`stars1.py`, :download:`stars2.py`