0
0
Agentic AIml~10 mins

Why multiple agents solve complex problems in Agentic AI - Test Your Understanding

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to create a list of agents.

Agentic AI
agents = [[1] for _ in range(5)]
Drag options to blanks, or click blank then click option'
Aagent
BAgent()
C5
Drange(5)
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'agent' instead of 'Agent()' creates a list of the same reference.
2fill in blank
medium

Complete the code to have each agent perform a task.

Agentic AI
for agent in agents:
    agent.[1]()
Drag options to blanks, or click blank then click option'
Arun
Bexecute
Cstart
Dperform_task
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'run' or 'start' which may not be defined methods.
3fill in blank
hard

Fix the error in the code to collect results from agents.

Agentic AI
results = [agent.[1] for agent in agents]
Drag options to blanks, or click blank then click option'
Aget_result()
Bresult
Cresult()
DgetResult
Attempts:
3 left
💡 Hint
Common Mistakes
Forgetting parentheses causes a list of method references, not results.
4fill in blank
hard

Fill both blanks to combine agent results and check if all succeeded.

Agentic AI
combined = sum(results)
all_success = all(result [1] [2] 0 for result in results)
Drag options to blanks, or click blank then click option'
A>
B==
C>=
D<
Attempts:
3 left
💡 Hint
Common Mistakes
Using '==' would only check for exact zero, not success range.
5fill in blank
hard

Fill all three blanks to create a dictionary mapping agent IDs to their results if result is positive.

Agentic AI
agent_results = {agent.id: result for agent, result in zip(agents, results) if result [1] [2] 0 and agent.[3]
Drag options to blanks, or click blank then click option'
A>
B>=
Cis_active
Dis_ready
Attempts:
3 left
💡 Hint
Common Mistakes
Using incorrect attribute names or wrong comparison operators.