Password ======== Save all functions into the same file named ``password.py``. #. Write the function :py:func:`has_upppercase` that takes a string, and returns ``True`` if it contains any uppercase letter and ``False`` otherwise. See the following examples: .. literalinclude:: password1.txt :language: python3 :lines: 3- .. note:: More tests are provided in the :download:`password1.txt` file. #. Write the function :py:func:`check_password` that takes two strings with a new and a previous password respectively. The function checks if the new password meets the system requirements. Specifically, the function must return an integer according to the following conditions referring to the new password: - If it is equal to the previous password, return 1. - If there are not at least 8 characters, return 2. - If it does not contain at least one uppercase letter, return 3. - In any other case, return 0. These conditions must be checked in the order indicated: or example if a new password does not have at least 8 characters and does not contain any uppercase letter, the function will return 2 (not 3). **This function must call the previous one**. See the following examples: .. literalinclude:: password2.txt :language: python3 :lines: 3- .. note:: More tests are provided in the :download:`password2.txt` file. .. rubric:: Solutions A solution of these functions is provided in the :download:`password.py` file.