Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
def calculate_probabilites(questions_so_far, answers_so_far):
probabilities = []
for character in characters:
probabilities.append({
'name': character['name'],
'probability': calculate_character_probability(character, questions_so_far, answers_so_far)
})
return probabilities
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment