Simulate 1000 delivery times that are normally distributed with mean 30 minutes and standard deviation 8 using rng.normal. Store the share of deliveries over 40 minutes (0–1, rounded to 3 decimals) in result.
import numpy as np rng = np.random.default_rng(42)
Store your final answer in a variable named result.
Each hint gives a little more help. Try on your own first.
Run your code to see the output here.