Answer to Question #43981 in Python for Gwen
Please help the part, I have no idea how to do the sum of even number. But, other than that, I am able to do. Thank you.
number_list = 
number_list.append(int(raw_input("Enter Number: ")))
if number_list[-1] == -10:
s = 0 #sum
for i in number_list[:-1]:
if i % 2 == 0:
s += i
print "Sum of all the even numbers ", s
Need a fast expert's response?Submit order
and get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!