Ad

Has been translated into Python.

Code
Diff
  • def FindOnly(list):
        for i in range(len(list)):
            if list[i] not in list[:i]:
                if list[i] not in list[(i+1):]:
                    return list[i]
    • f=a=>a.sort()[0]!=a[1]?a[0]:a[0]==(a=a.pop())?'Error':a
    • def FindOnly(list):
    • for i in range(len(list)):
    • if list[i] not in list[:i]:
    • if list[i] not in list[(i+1):]:
    • return list[i]