def columns_for_table(table, line_nums):
    """ For a given table and line numbers, returns a list of census
        columns.

        :param table: a string representing the table name

        :param line_nums: a list of integers representing the line
            numbers in the table to create columns for.

        :return: a list of strings that represent the census columns. """
    line_ends = ['{}E'.format(str(l).zfill(3)) for l in line_nums]
    return ['{}_{}'.format(table, l) for l in line_ends]