from collections import OrderedDict WeekPool = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39, 40,41,42,43,44,45,46,47,48,49,50,51,52] Employee = OrderedDict([('Jean',1,2,3,4,5),('Claude',1,2,3,4,5),('Van',1,2,3,4,5),('Dam',1,2,3,4,5)])I cannot edit or remove post, only have right to edit posts up to 10 minutes so ...
from collections import OrderedDict WeekPool = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39, 40,41,42,43,44,45,46,47,48,49,50,51,52] Employee = OrderedDict([('Jean',1),('Jean',2),('Jean',3),('Claude',1),('Van',1),('Dam',1)])How can i make it so the after 'Jean',1 is taken from the WeekPool ?