Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

remove tuple from list python

list_of_tuples = [('Alba', 'Texas'), ('Abernathy', 'Texas'), ('Abilene', 'Texas')]

list_of_tuples.remove(('Alba', 'Texas'))

#OR

list_of_tuples.pop(list_of_tuples.index(('Abernathy', 'Texas')))
 
PREVIOUS NEXT
Tagged: #remove #tuple #list #python
ADD COMMENT
Topic
Name
6+6 =