Question: Write a function called sumEven that accepts a list of strings as its argument. Each string will be either an integer, or the @ character.

 Write a function called sumEven that accepts a list of strings

Write a function called sumEven that accepts a list of strings as its argument. Each string will be either an integer, or the @ character. The function will return a list of sums of even integers between @ signs. It will ignore every third element in the list, regardless of that element's contents. The incoming list is guaranteed to have an even number before an @ sign. For example, sumEven(['2']) would return the list [2] sumEven(['1']) would return the list [0] sumEven(['2', @ '5'|) would return the list [2, 0] sumEven[2', '3', @ '4', '1', '6', @ '3', '2', @ '2', '2', '1', '2'] would return the list [6, 0, 4] You may NOT use any built-in functions or methods besides int, len and append

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!