I have this:
dictionary = { (month, year) : [int, int, int] }
I’d like to get a list of tuples/lists with the ordered data(by month and year):
#example info
list = [(8,2010,2,5,3),(1,2011,6,7,8)...]
I’ve tried several times but I can’t get to a solution.
Thanks for your help.
Don’t use as your identifier built-in names — that’s a horrible practice, without any advantages, and it will land you in some peculiar misbehavior eventually. So I’m calling the result
thelist(an arbitrary, anodyne, just fine identifier), notlist(shadowing a built-in).