Simpler solution than any other Just 4 lines


#1

class Solution:
# @param A : tuple of integers
# @return an integer
def singleNumber(self, A):
s=sum(A)
dist=set(A)
s1=2*sum(dist)

    return s1-s