
nums = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]

print nums[1] + nums[~1]

~1 = -2
~2 = -3
~4 = -4
~5 = -5
~6 = -6
~7 = -7


6d08aa6615aeb53a8b73b94bc1c24f24eabb7ae4

nums = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]

print nums[1] + nums[~1]

~1 = -2
~2 = -3
~4 = -4
~5 = -5
~6 = -6
~7 = -7

