Practice and reinforce the concepts from Lesson 1
Master the fundamentals with these focused exercises.
Transform vague prompts into clear ones:
Example:
Your Turn:
Vague: "Build a website" Clear: ________________________________
Vague: "Fix the error" Clear: ________________________________
Vague: "Make it faster" Clear: ________________________________
Add context to improve these prompts:
Without Context:
"Create a login form"
With Context:
"I'm building a banking application that requires high security.
Create a login form with..."
Practice These:
"Generate a data table" With context: ________________________________
"Write an API endpoint" With context: ________________________________
"Design a navigation menu" With context: ________________________________
Specify exact output format:
Without Format:
"Get user data from database"
With Format:
"Get user data from database and return as:
{
success: boolean,
data: { id, name, email },
timestamp: ISO string
}"
Your Specifications:
"Calculate shopping cart total" Format: ________________________________
"Validate form inputs" Format: ________________________________
"Process payment" Format: ________________________________
Add helpful constraints:
Unconstrained:
"Sort an array"
Constrained:
"Sort an array of objects by date property,
newest first, handle null values,
maximum O(n log n) complexity"
Add Constraints To:
"Create a password" Constraints: ________________________________
"Fetch data from API" Constraints: ________________________________
"Render a list" Constraints: ________________________________
Define clear success metrics:
Without Criteria:
"Optimize the function"
With Criteria:
"Optimize the function to:
- Execute in under 100ms
- Use less than 50MB memory
- Handle 1000 concurrent calls"
Define Success For:
"Improve the UI" Success = ________________________________
"Make it secure" Success = ________________________________
"Enhance performance" Success = ________________________________
Answer these to test understanding:
What makes a prompt "good"?
When should you add examples?
Best way to handle complex requirements?
You've learned to transform weak prompts into powerful instructions! These fundamentals will improve every AI interaction you have.