def bootstrap_statistic(data, stats_fn, num_samples):
 return [stats_fn(bootstrap_sample(data)) for _ in range(num_samples)]

def bootstrap_statistic ( data , stats_fn , num_samples ) : return [ stats_fn ( bootstrap_sample ( data ) ) for _ in range ( num_samples ) ]
evaluates stats_fn on num_samples bootstrap samples from data .