You are viewing a single comment's thread. Return to all comments →
from itertools import product from collections import Counter as counter l1 = [1,2,3,4,5,6] l2 = [1,2,3,4,5,6] zipped = list(product(l1, l2)) summed = [sum(i) for i in zipped] ops = len(summed) s_count = 0 for i in range(1,10): s_count += counter(summed)[i] print(str(int(s_count/6))+"/"+str(int(ops/6)))
Seems like cookies are disabled on this browser, please enable them to open this website
Day 2: Basic Probability Puzzles #1
You are viewing a single comment's thread. Return to all comments →