Complete the code to start the sequence when the start button is pressed.
if start_button.[1](): sequence.start()
The method is_pressed() checks if the start button is currently pressed, triggering the sequence start.
Complete the code to pause the sequence when the pause command is received.
if command == '[1]': sequence.pause()
The command to pause the sequence is 'pause', which triggers the pause method.
Fix the error in the code to correctly check if the sequence is running.
if sequence.[1]() == True: print('Sequence is running')
The method is_running() returns a boolean indicating if the sequence is active.
Fill both blanks to create a loop that waits until the sequence is complete.
while sequence.[1](): time.[2](1)
The loop continues while sequence.is_running() returns true, pausing 1 second each cycle with time.sleep(1).
Fill all three blanks to log the sequence status with timestamp.
log_entry = f"{time.[1]()} - Sequence status: {sequence.[2]()}" logger.[3](log_entry)
time.ctime() gives the current time as a string, sequence.is_running() returns status, and logger.info() logs the message.