SyntaxFix
Write A Post
Hire A Developer
Questions
I would zip the lists together to compare them element by element.
zip
main_list = [b for a, b in zip(list1, list2) if a!= b]