You are viewing a single comment's thread. Return to all comments →
answer: 2/9
from fractions import Fraction as F tot = 0 tar = 0 for i in range(10): for j in range(10): if i != j: tot += 1 if abs(i-j) == 1 or abs(i-j) == 9: tar += 1 print(F(tar,tot))
Seems like cookies are disabled on this browser, please enable them to open this website
Day 3: Basic Probability Puzzles #5
You are viewing a single comment's thread. Return to all comments →
Python
answer: 2/9