>_
rob.py
Python 3.14
Not run yet

+ 7 hidden

Input
nums = [2, 9, 3, 11, 4]
Expected
20

Take 9 and 11 (positions 1 and 3). The values at the even positions only give 2 + 3 + 4 = 9.