Assigning different teachers to different exams(python)

Viewed 15

I'm a new Python learner, the thing what I'm trying to do is; There are five days, x teachers and y exams / courses, I want to assign each teacher to a different exams on the same or different days, and of course there should not be any confliction. I tried a lot but unfortunately I failed each time. Any help will be appreciated. Thanks a lot...

exam_order = 
    {"Monday": ["exam1","exam2"],
    "Tuesday":["exam3","exam4"],
    "Wednesday":["exam5", "exam6"], 
    "Thursday": ["exam7", "exam8", "exam9"],  
    "Friday": ["exam10","exam11"]}

names = ["Adam", "Mostapha" ,"Jacob", "Joseph", "Jesus", "Aron"]

strong text

pretty = pprint.PrettyPrinter(width=50)
pretty.pprint(days)
0 Answers
Related