You are viewing a single comment's thread. Return to all comments →
from fractions import Fraction X = ['w']*5 + ['b']*4 Y = ['w']*7 + ['b']*6 count=0 visited=0 for i in X: tem=Y+[i] #print(tem) for j in tem: if j=="b": count+=1 visited+=1 print(Fraction(count,visited))
Seems like cookies are disabled on this browser, please enable them to open this website
Day 3: Basic Probability Puzzles #6
You are viewing a single comment's thread. Return to all comments →