How to print min of set in python?
<p>I have a set </p>

<pre><code>ww = [{27, 29, 6, 71}, {75, 52, 29, 46, 7}, {20, 71}, {59}, {52, 37, 15}]
</code></pre>

<p>and I want to print the element that has the shortest length ie. {59} in this example. </p>

<pre><code>min(ww)
</code></pre>

<p>would only give me {27, 29, 6, 71} instead of {59}</p>

<p>is there a way of using min() to do this? or any other smart methods?</p>