Python program to calculate an average of a given array of

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:
sum(a)
len(a)

One of the most common operations with lists is iteration. Then a code can be repeatedly applied to each element of the list.

Complete Answer:

Get Instant Help in Homework Asap
Get Instant Help in Homework Asap
Calculate your paper price
Pages (550 words)
Approximate price: -
Open chat
1
Hello 👋
Thank you for choosing our assignment help service!
How can I help you?