#Write a program that compares two lists of integers. The program finds #the number of elements that are the same and on the same positions in #both lists. Assume that both list have the same length. #functions to write: #1. make_list_random - same as before #2. compare, has two parameters - two lists. Function returns the number #of elements that are the same and on the same positions in #both lists #write main to test your function #Example: #list1=[1, 4, -6, 7, 8] #list2=[2, 1, -6, 9, 8] #compare returns 2 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 compare(list1, list2): counter=0 length=len(list1) for i in range(length): if(list1[i]==list2[i]): counter+=1 return counter def main(): size=random.randint(5,15) list1=make_list_random(size, 0,10) list2=make_list_random(size, 0,10) print("list1", list1) print("list2", list2) result=compare(list1, list2) if(result==0): print("no match") else: print(result, "values are matching") main()