Complete the code to start the first step in the sequence.
result = agent.execute_step([1])The first step is named 'step_1' to begin the sequence.
Complete the code to check if the current step is finished.
if agent.status == [1]: print('Step complete')
The status 'finished' means the current step is done.
Fix the error in the code to move to the next step.
next_step = agent.get_next_step()
agent.execute_step([1])Use the variable 'next_step' returned by get_next_step() to execute the next step.
Fill both blanks to create a loop that runs all steps until done.
while agent.status != [1]: current = agent.get_current_step() agent.execute_step([2])
The loop runs until status is 'finished'. Each step is executed using the current step variable.
Fill all three blanks to collect results from each step in a list.
results = [] while agent.status != [1]: step = agent.get_current_step() output = agent.execute_step([2]) results.[3](output)
The loop runs until 'finished'. Each step is executed using 'step'. The output is added to results with 'append'.
