Python program to calculate an average of a given array of number and output all numbers that are higher than the average by more than 20%.
Let a be a Python list, then we can declare a list with values as:
a = [2, 4, 3, 10, 33]
Standard functions can be used to calculate the sum or the length (number of elements) of a list:
One of the most common operations with lists is iteration. Then a code can be repeatedly applied to each element of the list.