Suggestions for improving this little piece of code?
<p>Any suggestions to improve this little piece of code? It works, but there must be a better way of doing it. Especially the first two lines, I have a bunch of them. Can't I merge the two somehow?</p>

<pre><code>for iso in set(BAR_Items):
    if iso+YEAR in heights: 
        mylist.append(heights[iso+YEAR])
mylist.sort()
cut = percentile(mylist, POS)
</code></pre>

<p>Thanks</p>
