I don't know how to do this:
I have a list of lists defined like this:
list=[[day,type,expense],[...]];
day and expense are int, type is string
I need to find the max expense by day. An example:
list=[[1,'food',15],[4,'rent', 50],[1,'other',60],[8,'bills',40]]
I need to sum the elements that have the same day and find the day with the highest expenses.
The result should be:
day:1, total expenses:75