• why show error

Question related to mission Lightbulb Start Watching

 

Hi, guys, I run my code in Pycharm with Python3.7, it's run normally and no error. but when I run this code in here, it show error "TypeError: '<' not supported between instances of 'NoneType' and 'datetime.datetime', sum_light, 14", why?