def split_data(train_percentage, *data):
    """
    Split data into training and validation sets according to the specified percentage
    :param train_percentage: percentage of training data in the entire data
    :param data: data to be split
    :return: training & validation data
    """
    train = [entry[0:int(train_percentage * len(entry))] for entry in data]
    val = [entry[int(train_percentage * len(entry)):] for entry in data]
    return train, val