Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
co drugi i mnożę razy ostatni solution in Clear category for Even the Last by MaciejKrasny
def checkio(array):
if len(array)==0:
return 0
#sumuje co drugi fukcją sum() i mnoże razy ostatni array[-1]
else:
return sum(array[::2])*array[-1]
Oct. 15, 2016