#Write a function that accepts two lists of integers. The function counts #the number of even numbers on EVEN positions in the first list and the #number of even #numbers on EVEN positions in the second list, and returns 1, if the first #list has more #even #numbers, -1 if the second list has more even numbers, and 0 if both lists #have the same amount of even numbers. #write a main program that testing your function import make_list SIZEA = 5 SIZEB = 8 def compare(listA, listB): countA = 0 countB = 0 for i in range(len(listA)): if(i%2 == 0 and listA[i]%2 == 0): countA = countA + 1 for i in range(len(listB)): if(i%2 == 0 and listB[i]%2 == 0): countB = countB + 1 if(countA > countB): res = 1 elif(countA < countB): res = -1 else: res = 0 return res def main(): listA = make_list.int_list(SIZEA) listB = make_list.int_list(SIZEB) print("first list is ") print(listA) print("second list is ") print(listB) result = compare(listA, listB) if(result == 1): print("listA has more evens on even position ") elif(result == -1): print("listB has more evens on even position ") else: print("the same amount of evens on even position") main()