Even the Last
给定列表 (list)的整数 (int).您应该找出偶数索引元素(第 0 个,第 2 个,第 4 个......)的和。然后将这个和与列表 的最后一个元素相乘。 (list)相乘。 不要忘记第一个元素的索引为0。
对于一个空的列表 (list)的结果总是0(零)。
输入: 列表 (List)的整数 (int).
输出:一个整数 (int).
示例
assert checkio([0, 1, 2, 3, 4, 5]) == 30 assert...
You should be an authorized user in order to see the full description and start solving this mission.