def sequences_from_log_and_indices(log, indices):
    """
    Creates sequences from log and indices.
    :param log: event log.
    :param indices: indices of instances in the event log.
    :return: list of sequences.
    """

    sequences = []

    for index in indices:
        sequences.append(log[index])

    return sequences