SyntaxFix
Write A Post
Hire A Developer
Questions
for l in list1: val = 50 - l[0] + l[1] - l[2] print "val:", val
Loop through list and do operation on the sublist as you wanted.