Implement a function that accepts a list of n + 6 numbers and returns a list of n numbers.

0 votes
asked Jan 25 by dare
Implement a function that accepts a list of n + 6 numbers and returns a list of n numbers. Each item in the new list is calculated by the formula v [i] + v [i + 1] + v [i + 2] + v [i + 3] + v [i + 4] + v [i + 5], where is in the input list.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register.
Welcome to OnlineGDB Q&A, where you can ask questions related to programming and OnlineGDB IDE and and receive answers from other members of the community.
...