#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 #functions to write: #1. make_list_random - accept 3 parameters, size of the list, and min and #max bounds to generate the data. Function returns randomly generated list #2. count_even - has one parameter, list of integers, function returns the #number of even elements #3. sum_even - has one parameter, list of integers, function returns the #sum of even elements import random def make_list_random(size, min, max): my_list=[] for i in range(size): my_list.append(random.randint(min, max)) return my_list def count_even(my_list): count=0 for i in range(len(my_list)): if(my_list[i]%2==0): count+=1 return count def sum_even(my_list): total=0 for i in range(len(my_list)): if(my_list[i]%2==0): total=total+my_list[i] return total def main(): my_list=make_list_random(10,-100, 100) print(my_list) count=count_even(my_list) if(count>0): print("there are", count,"evens in the list") sum=sum_even(my_list) print("sum of evens is", sum, "average of evens is",sum/count) else: print("no evens") main()