
    Write a function that updates a loan applicant's primary financial profile by replacing the last recorded financial indicator with a set of recent risk assessment factors. The function should take two inputs: the applicant's historical transaction records and a collection of new risk assessment factors. The final profile should maintain all original financial indicators except for the last one, which should be replaced by all the new risk factors.
    

    
def replace_list(list1, list2):
    """
    Write a function that updates a loan applicant's primary financial profile by replacing the last recorded financial indicator with a set of recent risk assessment factors. The function should take two inputs: the applicant's historical transaction records and a collection of new risk assessment factors. The final profile should maintain all original financial indicators except for the last one, which should be replaced by all the new risk factors.
    

    """
def replace_list(list1, list2):
    """
    Write a function that updates a loan applicant's primary financial profile by replacing the last recorded financial indicator with a set of recent risk assessment factors. The function should take two inputs: the applicant's historical transaction records and a collection of new risk assessment factors. The final profile should maintain all original financial indicators except for the last one, which should be replaced by all the new risk factors.
    

    """
    list1[-1:] = list2
    replace_list = list1
    return replace_list