def create_sudoku(filename):
    """
    Creates a list from an input file of integers.
    Exits the application if wrong format is given as input.
    A correct inputfile consists of integer values separated by spaces,
    as instruced per assignment.

    Parameters:
    filename (string): Filename that holds the sudoku.

    Returns:
    list: A list containing integer values, representing the sudoku.
    """

    sudoku = []
    with open(filename) as f:
        try:
            [sudoku.append([int(x) for x in line.split()]) for line in f]
        except ValueError:
            exit("Wrong input.. expecting integer values.")
    if not sudoku:
        exit("Empty file.. baby Yoda dissaproves this input.")
    return sudoku