remove from a list of tuples according to the second part of the tuple in python
<p><code>contacts.remove((name,ip))</code></p>

<p>I have the ip and it's unique. I want to remove this tuple from contacts according to the ip and no need to name.</p>

<p>I just tried this <code>contacts.remove((pass,ip))</code>, but I encountered an error.</p>
