Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
meh solution in Clear category for Lightbulb Intro by Leonix
from datetime import datetime
def sum_light(els):
return sum((time_off - time_on).total_seconds()
for time_on, time_off in
(els[i:i+2] for i in range(0, len(els), 2)))
May 14, 2021
Comments: