Python and combinatory

Problem Find all the combination of two in a team Solution from itertools import combinations team = ["john", "joe", "bob", "al", "tony", "mark"] comb = combinations(team, 2) for i in list(comb): print(i) Result: ('john', 'joe') ('john', 'bob') ('john', 'al') ('john', 'tony') ('john', 'mark') ('joe', 'bob') ('joe', 'al') ('joe', 'tony') ('joe', 'mark') ('bob', 'al') ('bob', 'tony') ('bob', 'mark') ('al', 'tony') ('al', 'mark') ('tony', 'mark') Let’s up the game now we want to arrange the combinations results in a way that none of these guys are on call twice in a row...

August 22, 2021 · 2 min · YS

Weekly Review: Education Unboxed, Google Jupyter, and unrelated

Ok this is an experimental post. I realised I collect a lot of information during the week. I don’t have the time to make sense of it immediately, in a way that would be deep, and reasonate with the global zeigest… So, instead of pilling drafts on my drive, I decided to publish it as a weekly review of the stuff I collect. and will later, if time allow, get back to it....

August 16, 2021 · 3 min · YS