I'm guessing the sum doesn't work? the code should sum what in the list and not loop 101 times because it will cause out of range error.
l=[]
sum,i=0,0
for x in range(101):
if x % 10 == 0:
l.append(x)
print(l)
for i in xrange(1,len(l)):
sum=sum+l[i]
print("Sum is:",sum)
Output
[0]
[0, 10]
[0, 10, 20]
[0, 10, 20, 30]
[0, 10, 20, 30, 40]
[0, 10, 20, 30, 40, 50]
[0, 10, 20, 30, 40, 50, 60]
[0, 10, 20, 30, 40, 50, 60, 70]
[0, 10, 20, 30, 40, 50, 60, 70, 80]
[0, 10, 20, 30, 40, 50, 60, 70, 80, 90]
[0, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100]
('Sum is:', 550)