I am not able understand this small error. Can you please explain why is the length of x not 1000. Thanks
N = 5000 p = 0.8 n1 = (1-p)*N # n1 = 1000 # cre