You are viewing a single comment's thread. Return to all comments →
from itertools import product import fractions sums = list(map(lambda x: x[0] + x[1], list(product(range(1,7), range(1,7))))) fractions.Fraction(len(list(filter(lambda x: x <= 9, sums))), len(sums))
Seems like cookies are disabled on this browser, please enable them to open this website
Day 2: Basic Probability
You are viewing a single comment's thread. Return to all comments →