Data Science, Statistics, Probability, Data Analytics, Data Science Interview.
10, then in each of the 11 other choices that our opponent has we have better chances of winning. choices = list(itertools.permutations(np.arange(1,13), 2)) results = [] for choice in choices: wins = (abs(outcomes - choice[0] ) < abs(outcomes - choice[1] )).sum() losses = (abs(outcomes - choice[0]