List comparison

PHOTO EMBED

Wed Aug 17 2022 02:13:15 GMT+0000 (Coordinated Universal Time)

Saved by @ianh

def returnNotMatches(a, b):
    return [[x for x in a if x not in b], [x for x in b if x not in a]]

def NotInPriceFile(price,bill):
    return [x for x in price if x not in bill]

def NotInBillFile(price,bill):
    return [x for x in bill if x not in price]
content_copyCOPY

https://stackoverflow.com/questions/35713093/how-can-i-compare-two-lists-in-python-and-return-not-matches