Skip to content

Instantly share code, notes, and snippets.

@sampletext32
Created December 24, 2020 16:12
Show Gist options
  • Save sampletext32/25baf93eb2a964e83d110996f2f16a71 to your computer and use it in GitHub Desktop.
Save sampletext32/25baf93eb2a964e83d110996f2f16a71 to your computer and use it in GitHub Desktop.
if __name__ == "__main__":
m = int(input())
list = []
for i in range(m):
list.append(int(input()))
sum = list[0]
for i in range(1, m):
sum += list[i]
avg = sum / m
mult = 1
for i in range(m):
if list[i] != 0 and list[i] > avg:
mult *= list[i]
print("mult = {0}".format(mult))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment