"""
fool around with the function design recipe...
"""


def add_list(the_list, the_string):
    """ Return new list with the_string added to end of the_list.

    @type the_list : list[str]
    @type the_string: str
    @rtype: list[str]

    >>> add_list(["my", "dog", "is"], "cute")
    ['my', 'dog', 'is', 'cute']
    >>> add_list([], "")
    ['']
    """
    return the_list + [the_string]


if __name__ == "__main__":
    MY_LIST = add_list(["my", "dog", "is"], "cute")
    MY_OTHER_LIST = add_list([], "")
    import python_ta
    python_ta.check_all()
