Guest User

Untitled

a guest
Apr 26th, 2018
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. # Given an array, find the int that appears an odd number of times.
  2. # There will always be only one integer that appears an odd number of times.
  3.  
  4. def find_it(seq):
  5. for num in seq:
  6. if seq.count(num) >= 1 and (seq.count(num) % 2 != 0):
  7. return num
Add Comment
Please, Sign In to add comment