Light Mode
Dark Mode
Even the last
def checkio(array):
total = 0
if array != []:
    for i in range(len(array)):
        if i % 2 == 0:
            total += array[i]
        else:
            continue
    total *= array[-1]
    return(total)
else:
    return(0)
Created: May 3, 2016, 10:49 p.m.
Updated: May 4, 2016, 9:31 p.m.
1
4
User avatar
m3rchant