I wrote the correct code. On my computer, this reference to the last element of the array works. In the online test, an error is issued. What's the matter?
last=len(array)-1
res=sum(a)*array[last]
From: https://py.checkio.org/mission/even-last/solve/
HTTP_USER_AGENT:
Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.120 YaBrowser/19.10.3.281 Yowser/2.5 Safari/537.36
Created at: 2019/12/12 08:34; Updated at: 2019/12/12 08:38