1. Solution exception:'tuple' object has no attribute 'extend'

When I wanted to calculate illuminance, I encountered an unprecedented prompt

question.gh (582.3 KB)
I still haven’t solved this problem. I hope someone can help me. Thank you very much