Question: fix code Question 4. Call simulate_several_key_strikes 5000 times, each time simulating the monkey striking 6 keys. Assign the proportion of times the monkey types Data
Question 4. Call simulate_several_key_strikes 5000 times, each time simulating the monkey striking 6 keys. Assign the proportion of times the monkey types "Data g" to a variable called data proportion. Question 4. Call simulate_several_key_strikes 5000 times, each time simulating the monkey striking 6 keys. Assign the proportion of times the monkey types "Data g to a variable called data_proportion. [34]: words = make_array('data 8') for i in np.arange(0, 5000): words = np.append(words, simulate_several_key_strikes(5)) count = for word in words: if word == "Data S": count = count + 1 data_proportion = count/len(words) I data_proportion NameError Traceback (most recent call last)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
