Answer:
def sample_median(n,P):
return np.median(np.random.choice(np.arange(1,len(P)+1),n,p=P))
Explanation:
See attached picture.
Answer:
A
Explanation:
If the silly way is what u want then d
To learn from your mistake and to not do it again just learn from it