The power of python is it has so many included libraries to do things you need -- no need to re-invent the wheel. In this case there's a great library for creating all sorts of combinations of values -- itertools!
So you want the sum of any combination of 2 values.
If we treat first,second, third, fourth as a list, called "val", We can use itertools to create all 2 value permutations,
We can use map to calculate the sum of all permutations.
Itertools also has a "product", which requires 2 separate lists, so you could group things as you want and do something like:
That will give you the sums of 1,3; 2, 3; 1, 4; 1, 3. Like you asked. The for loop is only there to print the values it produces at the end.
Let me know if this leaves any further questions.