Given two lists, return the minimal number of changes needed for one list to become the other
a = [15, 10, 15, 14]
b = [14, 15, 14, 14]
list_length = len(a)
print("list length:",list_length)
counter = 0
for i in range(list_length):
if a[i]!= b[i]:
counter = counter + 1
print ("minimal number of changes is:",counter)
Output:
list length:4
minimal number of changes is: 3
Please learn to write a better question