You are viewing a single comment's thread. Return to all comments →
Python 3 Solution.
Using list comprehensions.
def lonelyinteger(a): loner = [value for value in a if a.count(value) == 1] return loner[0]
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 →
Python 3 Solution.
Using list comprehensions.