So, as stated, it is a 2D list. 6 columns (6 random numbers) within 7 rows. The formatting for the out put should look like this: https://i.stack.imgur.com/hwnHi.png
what I have for my code is this:
print (" ", 1 , " ", 2, " ",3, " ",4, " ",5, " ",6)
print ()
for i in range(7):
print (i+1, *Pizza[i], sep=" ")
print ("To", *sales_of_hours, sep=" ")
Pizza is my 2D list, and sales_of_hours is a list of the totals for each column, and I have another list named sales_of_day for the totals of each row, but when I try to add that to the loop like this:
for i in range(7):
print (i+1, *Pizza[i], sep=" ", *sales_of_day[i])
I get a syntax error. What am I doing wrong?