title: Why is my Program Returning the Amount of Times Rather Than the Number Itself?
body: <p>I am trying to return the number in the list that occurs an odd number of times. Right now, it is returning the amount of times the number is present in the list. For instance, in this code, what is being returned is <code>[3, 3, 3]</code> I want it to return <code>4</code></p>
  
  <pre><code>def num_occurrence_lc(arr, num):
      lc = [1 for x in arr if x == num]
      return sum(lc)
  
  def getOddOccurrence_lc(arr):
      """returns the number stated an odd number of times in the
      sequence"""
      num_occ_list = [num_occurrence_lc(arr, x) for x in arr]
      odd_occ_list = [z for z in [z for z in num_occ_list if z%2!=0]]
      return odd_occ_list
  print(getOddOccurrence_lc([1,2,4,2,4,1,4]))
  </code></pre>