content = [3, 5, 2, 8, 1]
day = 3

max_sum = 0

for i in range(len(content) - day + 1):
    current_sum = 0
    for j in range(day):
        current_sum += content[i + j]
    if current_sum > max_sum:
        max_sum = current_sum

print(max_sum)

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: