#Write a function that accepts two parameters - list of #integers and additional value. Function counts the number of times the #value appears in the list and returns the counter. Write the main program #to test your function. Write main to test your function #Example: #my_list=[1,3,4,-10, 5, 4, -12, 1, 3, 1] #value=1 #function returns 3, because 1 appears 3 times in the list #value = 100 #function returns 0, since 100 is not in the list import random def make_list_random(size, min_limit, max_limit): my_list=[] for i in range(size): n=random.randint(min_limit, max_limit) my_list.append(n) return my_list def count_value(my_list, value): counter=0 for i in range(len(my_list)): if(my_list[i]==value): counter+=1 return counter def main(): size=random.randint(5,15) my_list= make_list_random(size, -10, 10) print(my_list) value=random.randint(-10, 10) print("value is", value) counter=count_value(my_list, value) if(counter>0): print(value, "appears", counter, "times") else: print(value, "is not in the list") main()