Using map and list comprehension #467
Unanswered
jonathan-morton
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, so I'm just getting started and it has been years since I've used Python so apologies if I am missing something obvious
It seems like when I use map or list comprehension in a time trigger the result is not being updated
I have the Jupyter notebook setup and the body of
turn_off()
works fine when run once when the lights are onBut the console outputs the following continuously even when the lights have been turned on
If I update the condition to
It works as expected
Beta Was this translation helpful? Give feedback.
All reactions