I have a list of lists which contain a first name, last name, and points scored.
list1 = [[\'david\', \'carter\', 6], [\'chris\', \'jenkins\', 0], [\'john\', \'w
>>>[item for item in list1 if item[2]==0]
ans:-
[['chris', 'jenkins', 0], ['ryan', 'love', 0]]
Keep it simple:
for e in list1:
if e[2] == 0:
print e
>>> from itertools import ifilterfalse
>>> from operator import itemgetter
>>> list(ifilterfalse(itemgetter(2), list1))
[['chris', 'jenkins', 0], ['ryan', 'love', 0]]