Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

filter list of tuples python

>>> filter(lambda x: x[0].startswith('img'), l)
[('img-1', 'iii'), ('img-2', 'jjj')]
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #filter #list #tuples #python
ADD COMMENT
Topic
Name
3+4 =