Python Lists: How can I search for another element or duplicate item in a list
<p>I have a list say <code>p = [1,2,3,4,2]</code>
Is there any way of returning bool value <code>True</code> if it contains a duplicate using only find, indexing, slicing, len() etc methods and not dict, tuple etc.</p>

<p>I used this code:   </p>

<pre><code>for e in p: 
   duplicate = p.find(e, e+1) 
   if duplicate in p: 
       return True
</code></pre>
