#Write a program that randomly generates the list of 10 #integers between -100 and 100. The program finds the sum #and average of the even elements of the list import random SIZE = 10 def main(): a=[] for i in range(SIZE): a.append(random.randint(-100,100)) print("randomly generated list is") print(a) sum=0 count=0 length=len(a) for i in range(length): if(a[i]%2==0): sum=sum+a[i] count=count+1 if(count>0): ave=sum/count print("sum=", sum, "ave=", ave) else: print("NO EVENS") main()