I have a list of dicts with the fields classid, dept, coursenum, area, and title from a sql query. I would like to output the values in a human readable format. I was thinking a Column header at the top of each and then in each column the approrpiate output ie:
CLASSID DEPT COURSE NUMBER AREA TITLE
foo bar foo bar foo
yoo hat yoo bar hat
(obviously with standard alignment/spacing)
How would I accomplish this in python?
Standard Python string formatting may suffice.
Or
Play with alignment, padding, and exact format specifiers to get best results.