0% found this document useful (0 votes)
6 views

Week 7 Session 2 Lesson Plan Prompt Engineering

The lesson plan for Week 7, Session 2 of the Prompt Engineering Specialization course focuses on applying prompt engineering to data analysis and coding. It includes a 90-minute session with lectures, demonstrations, and hands-on activities aimed at helping students craft and refine technical prompts. Learning objectives emphasize understanding use cases, crafting prompts, and analyzing their effectiveness in technical contexts.

Uploaded by

McKay Thein
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views

Week 7 Session 2 Lesson Plan Prompt Engineering

The lesson plan for Week 7, Session 2 of the Prompt Engineering Specialization course focuses on applying prompt engineering to data analysis and coding. It includes a 90-minute session with lectures, demonstrations, and hands-on activities aimed at helping students craft and refine technical prompts. Learning objectives emphasize understanding use cases, crafting prompts, and analyzing their effectiveness in technical contexts.

Uploaded by

McKay Thein
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 6

Below is a detailed **Lesson Plan** for **Week 7, Session 2** of the Prompt Engineering Specialization

course, titled *"Prompting for Data Analysis and Coding."* This session continues the intermediate
phase (Weeks 6-10), shifting focus to technical applications of prompt engineering in data analysis and
coding. It builds on skills from Weeks 1-6 (e.g., specificity, CoT, scripting) and is designed for a 90-minute
class (1.5 hours), combining lecture, demonstration, and hands-on practice to explore these technical
domains.

---

### Lesson Plan: Week 7, Session 2

**Title**: Prompting for Data Analysis and Coding

**Date**: [Insert specific date, e.g., October 16, 2025, assuming a Tuesday/Thursday schedule]

**Duration**: 90 minutes

**Location**: Classroom or virtual platform (e.g., Zoom)

**Instructor**: [Your Name]

**Target Audience**: College students (beginner to intermediate level, mixed technical backgrounds)

**Prerequisites**: Attendance at prior sessions; familiarity with business/education prompting from


Week 7, Session 1

---

### Learning Objectives

By the end of this session, students will:

1. Understand how prompt engineering applies to data analysis and coding tasks.

2. Identify specific use cases (e.g., data summaries, code generation) and tailor prompts for technical
outputs.

3. Craft prompts using prior techniques (e.g., CoT, parameterized) for these domains.

4. Analyze and refine technical prompts based on accuracy and utility.

---
### Materials Needed

- Slides or visual aids (e.g., PowerPoint, Google Slides) with data/code examples and prompt breakdowns

- Access to a generative AI tool (e.g., ChatGPT, Grok) with coding/data capabilities for demos and student
use

- Whiteboard or digital equivalent (e.g., Jamboard) for notes and technical breakdowns

- Handout: "Prompting for Data and Code Tips" (optional, with samples like “Analyze this data…” or
“Write a Python function…”)

- Internet-enabled devices: Instructor’s computer for demo; students’ laptops/tablets (or lab computers)

- Homework submissions: Students’ notes from Week 7, Session 1 (business/education prompt, output,
pro/con)

---

### Session Schedule

#### 0:00–0:10 | Welcome and Homework Debrief (10 minutes)

- **Activity**: Business/Education Reflections

- Instructor welcomes students, recaps Week 7, Session 1 (prompting for business and education use
cases).

- Ask 2-3 volunteers to share their homework:

- “What was your prompt?” (e.g., “Write a 10-word ad for a gym”).

- “What was the output?” (e.g., “Strength starts here!”).

- “One pro or con?” (e.g., “Pro: Catchy! Con: Too generic”).

- Note insights on whiteboard (e.g., “Roles help,” “Specificity matters”).

- **Purpose**: Connect practical prompting to technical applications, transition to new domains.

- **Transition**: “You’ve tackled real-world tasks. Now, let’s use prompts for data and code—technical
power!”

#### 0:10–0:30 | Lecture: Prompting for Data Analysis and Coding (20 minutes)

- **Content**:
- **Data Analysis Use Cases**:

- Summaries: “Summarize this dataset in 50 words.”

- Insights: “Find trends in these numbers: 5, 10, 15, 20.”

- Explanations: “Explain what a mean is to a beginner.”

- **Coding Use Cases**:

- Generation: “Write a Python function to add two numbers.”

- Debugging: “Fix this code: x = 5, y = ‘3’, print(x + y).”

- Explanation: “Describe how a for loop works.”

- **Techniques Applied**:

- CoT: “Solve this step-by-step” for data analysis.

- Specificity: “In Python, no errors” for code.

- Parameterized: “[Language] function for [task].”

- **Delivery**:

- Slides with examples:

- Data: “Analyze 3, 6, 9, 12 step-by-step.” → “Add: 30, divide by 4, mean = 7.5.”

- Code: “Write a JavaScript alert in 3 lines.” → `alert("Hi!");`

- Live Demo (5 minutes):

- Data: “Find the average of 10, 20, 30, show steps.” → “Sum = 60, count = 3, avg = 20.”

- Code: “Write a Python loop to print 1-5.” → `for i in range(1, 6): print(i)`

- Ask, “What makes these technical prompts work?”

- **Engagement**: Pause at 0:25 to ask, “What data or code task could AI help with?” (Quick responses,
e.g., “Stats,” “Debugging”).

- **Purpose**: Highlight technical applications, tie to prior skills.

#### 0:30–0:40 | Break (10 minutes)

- **Activity**: Students stretch or chat; instructor preps activity.

- **Purpose**: Recharge for hands-on practice.

#### 0:40–1:15 | Activity: Craft Technical Prompts (35 minutes)


- **Content**: Students design prompts for data analysis or coding tasks.

- **Activity**: Data and Code Prompt Challenge

1. **Setup (5 min)**:

- Instructor explains: “Pick a data or coding task, write a prompt using any technique, and test it.”

- Suggested tasks:

- Data: “Summarize 2, 4, 6, 8,” “Explain median.”

- Code: “Write a Python sum function,” “Fix a loop error.”

- Ensure tool access (e.g., Grok/ChatGPT link or lab setup).

2. **Individual Work (15 min)**:

- Students:

- Choose a domain and task (e.g., “Data: Average of 5, 10, 15”).

- Write a prompt (e.g., “Calculate the average of 5, 10, 15 step-by-step.”).

- Test it, record output (e.g., “Sum = 30, avg = 10”).

- Tweak if needed (e.g., “Add ‘no decimals’” → “10”).

- Stretch goal: Add parameters (e.g., “[mean/median] of…”).

3. **Group Analysis (15 min)**:

- Form small groups (3-4 students).

- Share prompt, output, and intent.

- Discuss: “Is it accurate? Useful? How could it improve?”

- Instructor circulates, asking, “Did it solve it?” or “What’s off?”

- **Facilitation**: Encourage precision (e.g., “Ask for steps!”) and utility.

- **Purpose**: Apply skills to technical contexts, refine with peers.

#### 1:15–1:30 | Wrap-Up and Preview (15 minutes)

- **Content**:

- Recap: “Prompts can crunch data or write code—your skills make it precise.”

- Debrief Activity: Invite 1-2 groups to share (e.g., “My function worked perfectly!”). Note tips on
whiteboard (e.g., “CoT for data”).

- Next Session Preview: “We’ll dive into automation—scripting prompts at scale.”


- Homework: “Test a data or coding prompt, bring prompt, output, and one tweak idea.”

- **Activity**: Quick Q&A (e.g., “Any code flops?” “Tool quirks?”).

- **Purpose**: Reinforce technical prompting, prep for automation.

---

### Assessment

- **Formative**:

- Participation in debrief and activity (observed engagement).

- Quality of technical prompts during activity (informal feedback).

- **No graded deliverables**: Focus on skill application.

---

### Contingency Plans

- **If time runs short**: Shorten group analysis to 10 minutes, summarize as a group.

- **If tech fails**: Use pre-prepared outputs (e.g., “Here’s a Python loop…”).

- **If students struggle**: Offer starters (e.g., “Sum 1, 2, 3 with steps”).

---

### Post-Session Notes for Instructor

- Reflect: Did students handle technical tasks well? Any coding vs. data split?

- Prep for Week 8, Session 1: Gather automation examples, review homework trends.

---
This plan extends prompting into technical domains, keeping it practical and interactive. It leverages
prior techniques while introducing new contexts, suitable for varied skill levels. Let me know if you’d like
adjustments—like more coding focus or additional examples!

You might also like