numbers = [4, 7, 1, 9, 3] answer = 0 for i in range(len(numbers)): if i % 2 == 0: answer += numbers[i] print(answer)
To embed this project on your website, copy the following code and paste it into your website's HTML: