You are viewing a single comment's thread. Return to all comments →
def fac(num): if num==1 or num==0: return 1 else: return num * fac(num-1) s=0 b,g=map(float,input().split()) p=b/(b+g) for i in range(3,7): s+=(fac(6)/(fac(6-i)*fac(i)))*((p)**(i))*((1-p)**(6-i)) print(round(s,3))
Seems like cookies are disabled on this browser, please enable them to open this website
Day 4: Binomial Distribution I
You are viewing a single comment's thread. Return to all comments →