You are viewing a single comment's thread. Return to all comments →
Python code
from fractions import Fraction count = 0 def func(count): for i in range(1, 7, 1): for j in range(1, 7, 1): if (i != j) and (i + j) == 6: count += 1 return Fraction(count, 6*6) print(func(count))
Seems like cookies are disabled on this browser, please enable them to open this website
Day 2: Basic Probability Puzzles #2
You are viewing a single comment's thread. Return to all comments →
Python code