Practice - 5 Tasks
Answer the questions below
1fill in blank
easyComplete the code to start measuring latency before a step.
Agentic_ai
start_time = [1]() Drag options to blanks, or click blank then click option'
Attempts:
3 left
2fill in blank
mediumComplete the code to calculate latency after a step finishes.
Agentic_ai
latency = [1]() - start_time Drag options to blanks, or click blank then click option'
Attempts:
3 left
3fill in blank
hardFix the error in the code to correctly measure latency for a step.
Agentic_ai
end_time = time.time()
latency = end_time - [1] Drag options to blanks, or click blank then click option'
Attempts:
3 left
4fill in blank
hardFill both blanks to create a dictionary that stores latency per step name.
Agentic_ai
latency_per_step = { [1]: [2] } Drag options to blanks, or click blank then click option'
Attempts:
3 left
5fill in blank
hardFill all three blanks to update latency for a step in a monitoring dictionary.
Agentic_ai
latency_per_step[[1]] = [2] - [3]
Drag options to blanks, or click blank then click option'
Attempts:
3 left
