remove from a list of tuples according to the second part of the tuples in python

Posted by sia on Stack Overflow See other posts from Stack Overflow or by sia
Published on 2010-05-17T22:57:01Z Indexed on 2010/05/17 23:00 UTC
Read the original article Hit count: 276

Filed under:

contacts.remove((name,ip)) i have the ip and its unique, i want to remove this tuple from contacts according to the ip and no need to name, i just tried this "contacts.remove((pass,ip))", but i encountered an error.

© Stack Overflow or respective owner

Related posts about python