Single line python code passed all cases


#1

class Solution:
def singleNumber(self, A):
return sum(set(A))*2-sum(A)