find the sum of an even number from a list of integers

mylist = list(input())
result = 0
for i in mylist:
  if int(i) % 2 ==0:
    result += int(i)
print(result)

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top