def split_into_k(list_to_split, number_of_splits):
    """
    Split a list into a given number of splits

    list_to_split - the list to be splitted
    number_of_splits - the number of splits to create
    """

    # The size of each split
    range_to_use = int(len(list_to_split) / number_of_splits)

    # Result list
    result_list = []

    # Iterate over each split and create a list for each split
    for split in range(1, number_of_splits + 1):
        list_to_create = list_to_split[range_to_use * (split - 1) : range_to_use * split]

        result_list.append(list_to_create)

    return result_list