pyassistant

Sum of Integers at Even Indices

Given a list of integers, return the sum of all elements at even indices (0-indexed).

Example:

Input:
[3, 7, 2, 8, 5, 9]
Output:
10

Make sure you return your solution, don't print!

AI

Bot

Trying to solve my challenge? Ask if you must, or press the purple button so I can analyze your code.