import itertools


def validate_accumulate(container_):
    """
    accumulate([1,2,3,4,5]) --> 1 3 6 10 15

    """
    return list(
        itertools.accumulate(
            container_
        )
    )