You are viewing a single comment's thread. Return to all comments →
def Geometric(n,p): return (1-p)**(n-1) * p nume,deno = list(map(int,input().split())) n = int(input()) print(f"{Geometric(n,nume/deno):.3f}")
Seems like cookies are disabled on this browser, please enable them to open this website
Day 4: Geometric Distribution I
You are viewing a single comment's thread. Return to all comments →