l = [('text-1', 'xxx'), ('img-1', 'iii'), ('img-2', 'jjj'), ('text-2', 'xxx')]
(x for x in l if x[0].find('img') == 0)
gen = (x for x in l if x[0].find('img') == 0)
list(gen)
Finding in elements in a tuple and filtering them