Some code to get you started.

import numpy as np
N = 1001
x = np.random.normal(size=N)
True + 1                        # a hint
## 2
  1. Write equivalent code using vectorization.
total = 0
for n in range(N):
    total = total - x[n]
  1. Explain, using new statistics words, what the following code is doing.
(x > 1).mean()
## 0.14385614385614387