Alan Gauld wrote: > So in pseudo code: > > data = {} > for row in myArray: > data.get((row[0],row[1]),[]).append row[3]
Replace get() with setdefault() to go from pseudo to Python code. _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor