import numpy as np aary = np.array([-3, 1, 3])print(np.median(aary))bary = np.array([-3, -1, 1, 3])print(np.median(bary))
Standard input is empty
1.0 0.0
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!