0
u/3Dayo Oct 27 '14
Ok, off the top of my head...
test_scores = [101,107,83,90]
extra = []
for i in test_scores:
extra.append(i - 100 if i > 100 else 0)
print (sum(extra))0
Ok, off the top of my head...
test_scores = [101,107,83,90]
extra = []
for i in test_scores:
extra.append(i - 100 if i > 100 else 0)
print (sum(extra))
0
u/[deleted] Oct 27 '14
sum(i for i in [101,107,83,90] if i>100)