You are viewing a single comment's thread. Return to all comments →
nums = raw_input().strip().split(" ")
print [int(x) for x in nums if nums.count(x)%2 != 0]
can someone make this into a one liner in python? :)
Seems like cookies are disabled on this browser, please enable them to open this website
Lonely Integer
You are viewing a single comment's thread. Return to all comments →
nums = raw_input().strip().split(" ")
print [int(x) for x in nums if nums.count(x)%2 != 0]
can someone make this into a one liner in python? :)