Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Given an array, find the int that appears an odd number of times.
- # There will always be only one integer that appears an odd number of times.
- def find_it(seq):
- for num in seq:
- if seq.count(num) >= 1 and (seq.count(num) % 2 != 0):
- return num
Add Comment
Please, Sign In to add comment