def single_number(nums):
i = <NUM_LIT:0><EOL>for num in nums:<EOL><INDENT>i ^= num<EOL><DEDENT>return i<EOL>
Returns single number, if found.
Else if all numbers appear twice, returns 0.
:type nums: List[int]
:rtype: int