remove from a list of tuples according to the second part of the tuples in python
- by sia
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.