
    Write a function that takes in a current delivery route plan and a set of new delivery locations, and updates the final destination of the existing route by incorporating all the new delivery points in sequence. The function should modify the original route plan by replacing its last stop with the new sequence of delivery locations, ensuring all new delivery points are added while maintaining the initial part of the route unchanged.
    

    
def replace_list(list1, list2):
    """
    Write a function that takes in a current delivery route plan and a set of new delivery locations, and updates the final destination of the existing route by incorporating all the new delivery points in sequence. The function should modify the original route plan by replacing its last stop with the new sequence of delivery locations, ensuring all new delivery points are added while maintaining the initial part of the route unchanged.
    

    """
def replace_list(list1, list2):
    """
    Write a function that takes in a current delivery route plan and a set of new delivery locations, and updates the final destination of the existing route by incorporating all the new delivery points in sequence. The function should modify the original route plan by replacing its last stop with the new sequence of delivery locations, ensuring all new delivery points are added while maintaining the initial part of the route unchanged.
    

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