LIHTU
on Nov. 25, 2015, 8:46 p.m.
<p>Hmmm. I sort of get this, but it's not clear what how the first 'el' in [el for el...] works. Since this is a learning site, it might be nice if users commented their code to explain solutions that are not super straightforward and conventional :)
But as I look at the code more...I come to appreciate the elegance of Python. The entire statement is just saying "return each element in a new array if the count of the element in the data set is greater than 1".
Nice elegant solution.</p>