All possible combination of pairs + 1 triple group from an odd list?
问题 Starting with an odd list of students, let’s say 21 total: cohort = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20] I want use Python to write a function that assign pairs for group projects every day with different pairings. Since we have an odd number of students, I don’t want anyone to be working alone, so we would need to have 9 groups of 2 people and 1 group of 3 people . Every day they would change partners. For example, on day 1 and day 2, the groups would