for elem1 in list1:
    for elem2 in repeated_countsM:
        if elem1 == elem2:
            if elem1 not in unique_listX:
                unique_listX.append(elem1)
                break
    else:
        if elem1 not in unique_listX:
            unique_listX.append(elem1)

print("Original list1:", list2)
print("List final ZX10L with least repetition:", unique_listX) Your response should contain 100+ words.
user