๐Ÿ’ฌ
๐Ÿ“ Prompt Engineering ยท PRC-101 ยท Assignments

Prompt Engineering โ€” Assignments

Work each problem yourself first, then open the worked solution to check your thinking. This is where the course sticks.

๐Ÿ“ 4 problemsโœ๏ธ Worked solutions
Problem 1

Take a vague prompt you might really use ('write something about my business') and rewrite it using all four elements: role, task, context, format. Show both versions.

Show worked solution

A strong answer makes the upgrade obvious. Example: vague โ†’ 'Write about my coffee shop.' Strong โ†’ 'You are a friendly copywriter (role). Write a 60-word Instagram caption (task) for my small-town coffee shop's new oat-milk latte, aimed at morning commuters (context). Warm and punchy, one emoji, end with a question (format).' The four elements turn a generic request into a usable one.

Problem 2

Use few-shot prompting: give an AI two examples of a format you like (e.g. two product taglines), then ask it to produce a third for something new. Note how the examples shaped the result.

Show worked solution

The lesson lands when the output clearly mirrors your examples' style and structure far more closely than a described request would. The takeaway: for a specific style or format, showing two examples ('here are two I likeโ€ฆ now do one for X') beats any amount of describing what you want.

Problem 3

Take a result you weren't happy with and improve it through iteration โ€” give at least two specific corrective instructions rather than restarting. Record the exchange.

Show worked solution

Good answers show specific redirects, not vague ones: 'cut the intro and lead with the benefit', then 'make it less formal and 30% shorter' โ€” building on what worked each time. The point is that treating AI as a conversation you steer, with precise feedback, beats expecting a perfect one-shot answer or starting over.

Problem 4

Write a prompt that forces a specific structured output โ€” e.g. a table with named columns, or a fixed template โ€” and confirm the AI follows it. What did you have to specify?

Show worked solution

Example: 'Return a table with exactly these columns: Task, Owner, Deadline. One row per item. No extra text.' A strong answer notes that precision about the container (exact columns, one row per item, 'no extra text') is what produced consistent, usable structure โ€” and that a filled-in example locks it in even tighter.

More in this course

Course home → · Browse all courses →