Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Even the Last by Zlh
def checkio(array: list) -> int:
return 0 if len(array)==0 else sum(array[0::2])*array[-1]
Jan. 23, 2022