fork download
  1. # your code goes here
  2. import numpy as np
  3. money = np.array([20,25,22,30,28])
  4. a = np.array([15,18,22,20,16])
  5. print(money-a)
  6. print(np.mean(money-a))
  7. print(np.std(money-a))
  8. b=money-a
  9. print(len(b[b==np.max(b)]))
Success #stdin #stdout 1.07s 41332KB
stdin
Standard input is empty
stdout
[ 5  7  0 10 12]
6.8
4.166533331199932
1