• + 0 comments

    I don't get why these questions are marked as hard.

    import math
    lambda_ = 3
    
    q1 = (math.e ** -(lambda_) * lambda_ ** 0) / 1 
    print(f"{round(q1,3):.3f}")
    
    lambda_2 = lambda_ * 2
    q2 = sum([(math.e ** -(lambda_2) * lambda_2 ** k) / math.factorial(k) for k in [0,1]])
    print(1 - round(q2,3))