def bootstrap_sample(data):
 return [random.choice(data) for _ in data]

def bootstrap_sample ( data ) : return [ random . choice ( data ) for _ in data ]
randomly samples len elements with replacement .