# -*- coding: utf-8 -*- """ Created on Mon Sep 26 11:00:42 2022 @author: cpresser """ fields = ["Year", "Applicants", "Admitted", "Enrolled"] #nested list data = [ [2021, 6206, 3495, 623], [2020, 6468, 3120, 640], [2019, 5916, 2842, 681], [2018, 6269, 2847, 748], [2017, 6384, 2924, 720], [2016, 6816, 2907, 698], [2015, 6386, 2540, 699], [2014, 4915, 2233, 720], [2013, 5453, 2270, 703], [2012, 5620, 2264, 769], [2011, 5662, 2257, 732], [2010, 5392, 2173, 721], [2009, 5448, 2201, 739], [2008, 5794, 2190, 714], [2007, 6126, 2180, 695], [2006, 5310, 2183, 730] ] #end the data #print out the formatted data table #Submit your file to today's classwork for f in fields: print(f"{f:>16}", end="") print() #print out the data for row in data: #each row is a list for value in row: print(f"{value:>16}", end="") print()