#write a function that has two parameters - two integer lists #function returns the number of elements that are the same and on the #same positions in both lists #you can assume that both list have the same length def compare_list(list_a, list_b): counter = 0 for i in range(len(list_a)): if (list_a[i]==list_b[i]): counter = counter + 1 return counter def main(): list_a = [1, 2, 3, 4, 5, 6, 7] list_b = [1, 4, 5, 4, -5, 6, 8] counter = compare_list(list_a, list_b) if (counter ==0): print("none of elements are the same on the same positions ") elif(counter == len(list_a)): print("both lists are the same") else: print("there are ", counter, "elements the same on the same position") main()