79200149

Date: 2024-11-18 13:44:22
Score: 1
Natty:
Report link
a = np.array([1,2,3,4,5])
mean_a = (a[1:] + a[:-1]) / 2

output:

array([1.5, 2.5, 3.5, 4.5])
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: IzaeDA