def print_msg_closure(msg: str):
    """
    Closure function that returns a function that prints a message.

    :param str msg: Message to attach to print function.
    """
    def printer():
        print(msg)
    return printer