An analyst wants to look at the sessions that ran longer than usual.
Write a function above_average(values) that returns the values greater than the average of the list, in their original order. An empty list gives an empty list.
How it's checked
Your code runs, then the check below runs and its printed output is compared with ours.
above_average([10, 20, 30, 40]) returns [30, 40] (the average is 25)Hints, the later steps and the answer come with Pro.
def above_average(values):
...