DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
3+4 =
Submit