hi everyone
I can't tell why my code doesn't work for the last self-testing.
I think I still lack in datetime understanding.
Some hints to debug my code?
def sum_light(els: List[datetime]) -> int:
return sum([(abs(els[i+1]-els[i])).seconds for i in range(0, len(els), 2)])
Thanks,
Oliver
Created at: 2021/09/27 12:40; Updated at: 2021/09/27 13:14
The question is resolved.