i have a list of objects with random ids, like mylist = [ob131,ob2312,ob583,ob4794,ob89795,ob78976,ob749,ob867,ob79]
what is the best way to devide this into sublists with a different condition for each sublist.
like sublist_a: only objects with object.id %2==0, sublist_b, only objects with object.id %3==0, sublist_c: only objects with object.id%4==0,, sublist_d: only objects with object.id %5==0
currently i loop over mylist and put the object in every group if it matches the condition... is tehre a better way?