Practice - 5 Tasks
Answer the questions below
1fill in blank
easyComplete the code to set the system prompt for the AI model.
Prompt Engineering / GenAI
system_prompt = "You are a helpful assistant specialized in [1]."
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing unrelated specializations like cooking or sports.
Leaving the prompt too vague.
✗ Incorrect
The system prompt should specify the AI's role. Here, 'machine learning' fits the topic best.
2fill in blank
mediumComplete the code to assign a role to the AI assistant.
Prompt Engineering / GenAI
role = "[1]"
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing roles unrelated to teaching or AI.
Selecting roles that do not fit the topic.
✗ Incorrect
The role should match the teaching focus on Machine Learning & AI for beginners.
3fill in blank
hardFix the error in setting the system prompt to include the role and topic.
Prompt Engineering / GenAI
system_prompt = "You are a [1] who teaches [2]."
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Putting the topic where the role should be.
Using unrelated roles.
✗ Incorrect
The first blank is the role 'machine learning instructor', the second blank is the topic 'machine learning'.
4fill in blank
hardFill both blanks to complete the system prompt with role and topic.
Prompt Engineering / GenAI
system_prompt = "You are a [1] specialized in [2]."
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Swapping role and topic.
Choosing unrelated options.
✗ Incorrect
The first blank is the role 'machine learning instructor', the second blank is the topic 'machine learning'.
5fill in blank
hardFill all three blanks to set system prompt, role, and topic correctly.
Prompt Engineering / GenAI
system_prompt = "You are a [1] who teaches [2] to [3]."
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing up audience with role or topic.
Choosing 'experts' instead of 'beginners'.
✗ Incorrect
The role is 'machine learning instructor', the topic is 'machine learning', and the audience is 'beginners'.