title: Looping through all item except itself
body: <p>I am trying to find the item in a list with highest number of occurrence. </p>
  
  <p>For this, I am trying to compare every item in list with all other items in list and increasing count's value by 1 each time a match is found.</p>
  
  <pre><code>def findInt(array):
      count = []
      count = [1 for i in range(0,len(array))]        
      for i,item in enumerate(array):
          if (array[i] == array[i:]):  #How can I compare it with all items except itself?
              count[i]+=1
  
      return max(count), count.index(max(count))
  
  
  findInt(array=[1,2,3])
  </code></pre>
  
  <p>My question is "how do I compare the item with all other items except itself"? </p>