I want to print the sum of all possible combinations of two items in this list - can you tell me what is wrong with the code below? Nothing happens when I run it.
gammas = [1.0,2.0,6.0,5.0,8.,4.]
for i in range(len(gammas)):
for j in range(len(gammas)):
while (j>i):
print gammas[i]+gammas[j]
if j==i:
break