2
def displayTable(self, orders: List[List[str]]) -> List[List[str]]:6
for order_row in orders:7
if order_row[-1] not in dish:8
dish.append(order_row[-1])10
for order_row in orders:11
if order_row[1] not in table_dict.keys():12
table_dict[order_row[1]] = {}14
table_dict[order_row[1]][food] = 015
table_dict[order_row[1]][order_row[-1]] += 117
table_dict[order_row[1]][order_row[-1]] += 120
column = column + dish24
for key in sorted(table_dict.keys()):25
table.append(int(key))29
childDict[key].append(str(table_dict[key][value]))32
for table_num in table:33
childList = [str(table_num)]34
output.append(childList + childDict[str(table_num)])