Daily numbers to weekly totals

Easyreshapesum with axis· 10 XP

daily holds 28 days of sign-ups (illustrative numbers), starting on a Monday.

Store the total sign-ups for each of the 4 weeks, as an array of 4 numbers.

Expected answer

Store it in result: a NumPy array of shape (4,).

import numpy as np

daily = np.array([12, 15, 11, 18, 20, 25, 9, 14, 16, 13, 19, 22, 27, 10,
                  15, 17, 14, 21, 24, 30, 12, 13, 18, 16, 20, 26, 31, 11])
result = ...