Practice - 5 Tasks
Answer the questions below
1fill in blank
easyComplete the code to initialize a personal assistant agent with a name.
Agentic_ai
assistant = PersonalAssistant(name=[1]) Drag options to blanks, or click blank then click option'
Attempts:
3 left
2fill in blank
mediumComplete the code to add a task to the assistant's task list.
Agentic_ai
assistant.tasks.[1]("Schedule meeting at 3 PM")
Drag options to blanks, or click blank then click option'
Attempts:
3 left
3fill in blank
hardFix the error in the code to check if the assistant is available.
Agentic_ai
if assistant.[1](): print("Assistant is ready")
Drag options to blanks, or click blank then click option'
Attempts:
3 left
4fill in blank
hardFill both blanks to create a dictionary of tasks with their priorities.
Agentic_ai
task_dict = {task[1]: priority[2] tasks} Drag options to blanks, or click blank then click option'
Attempts:
3 left
5fill in blank
hardFill all three blanks to filter tasks with priority above 2 and create a list of their names.
Agentic_ai
high_priority_tasks = [task[1] for task, priority [2] tasks if priority [3] 2]
Drag options to blanks, or click blank then click option'
Attempts:
3 left
