Проверьте два списка Python не совпадать
l1 = [10, 20, 30, 40, 50]
l3 = [50, 10, 30, 20, 40]
a = set(l1)
b = set(l3)
if a == b:
print("Lists l1 and l3 are equal")
else:
print("Lists l1 and l3 are not equal")
Impossible Ibex