• + 0 comments
    import math
    
    lambd = float(input())
    k = int(input())
    
    poisson_prob = ((lambd ** k) * math.exp(-lambd)) / math.factorial(k)
    
    print(round(poisson_prob,3))