Skip to content
Advertisement

python list in tuple compare

I have a list and a tuple ( from sqlite query) and what to check if the items in list are not in the db tuple. If not add to newJobs list

Advertisement

Answer

You can try a list comprehension:

myList is your list and myTuple is your tuple

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement