Screen Link: https://app.dataquest.io/m/99/chi-squared-tests/4/generating-a-distribution

Your Code: ` import numpy as np chi_squared_values = [] n=32561 expected=n/2 for i in range(1000): rands = np.random.random(n,) male_count = sum(rands<=0.5) female_count = sum(rands>0.5) male_diff = pow(male_count-expected, 2)/expected female_diff = pow(female_count-expected, 2)/expected chi_squared_values.append(male_diff + female_diff) plt.hist(chi_squared_values, bins=21) plt.show()`

What I expected to happen: I expected the program to run to completion

What actually happened: After about 2 minutes - connection broke, and received timeout

Other details: It worked for loop length of 100, but not for 1000