#Write a function def compare(list_a, list_b) that accepts two lists of #integers. The function counts the number of odd numbers in the first list #and the number of ODD numbers in the second list, and returns 1, if the #first list has more odd numbers, -1 if the second list has more odd #numbers, and 0 if both lists have the same amount of odd numbers. Write a #main program that testing your functon: randomly generate the list of #size 15, range of integers from -10 to 10 import random def main(): list1=[] list2=[] for i in range(15): list1.append(random.randint(-10, 10)) list2.append(random.randint(-10, 10)) print(list1) print(list2) count1=0 count2=0 for i in range(15): if(list1[i]%2!=0): count1+=1 if(list2[i]%2!=0): count2+=1 print(count1, count2) if(count1>count2): print("list 1 has more odds") elif(count2>count1): print("list 2 has more odds") else: print("same number of odds") main()