update the value in set Python?
<p>Here an example of my set, which I would like to update:</p>

<pre><code>&gt;&gt;&gt; x = set()
&gt;&gt;&gt; x.add(('A1760ulorenaf0821x151031175821564', 1, 0))
&gt;&gt;&gt; x
set([('A1760ulorenaf0821x151031175821564', 1, 0)])
</code></pre>

<p>My expected result would be:</p>

<pre><code>set([('A1760ulorenaf0821x151031175821564', 1, 1)])
</code></pre>

<p>How I can do it? Is a set is the best option, or have I to use another data structure for that? I thought that update method in <code>set</code> can do that. However, I made mistake, and that is not a good solution as it does not consider the first parameter as a key and repeat the elements.</p>