title: Filtering a list python repeated items
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/9835762/find-and-list-duplicates-in-python-list">Find and list duplicates in Python list</a>  </p>
  </blockquote>
  
  
  
  <p>I have this script in Python:</p>
  
  <pre><code>routes = Trayect.objects.extra(where=['point_id IN (10,59)'])
  
  for route in routes:
      print route
  </code></pre>
  
  <p>I get this response: </p>
  
  <p>6
  <strong>106</strong>
  114
  <strong>110</strong>
  118
  158
  210
  <strong>110</strong>
  102
  105
  <strong>110</strong>
  120
  195
  <strong>106</strong></p>
  
  <p>As you note "110" route is repeated 3 times and "106" is repeated 2 times.</p>
  
  <p>How i can do for obtain only the repeated number?</p>
  
  <p>I want only <strong>110</strong> and <strong>106</strong>, not others. Just this:</p>
  
  <p>106
  110</p>
  
  <p>Im not a native English speaker, and I am learning python. Thanks</p>
  
  <p>***The objects in list are strings</p>