Inside the code block, stop the loop after running its code block by setting is_on to False.

Make sure to type False.