Question: Write a short python function to find out the average of three consecutive items in an input list. The input of this function is a
Write a short python function to find out the average of three consecutive items
in an input list. The input of this function is a list of integer fractional values, and the function should
return a list of integer fractional values. The first item index in the output list would be the average
value of the first three items index to of the input list, the second item index in the output list
would be the average value of the second three items index to of the input list. For simplicity, assume
that the number of items in the input list will always be multiple of three. Write a main function to test
your function and print the output. Test with following examples at least.
Example : Input and output
Example : Input and output
Example : Input and output
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
