Week 7 Session 2 Lesson Plan Prompt Engineering
Week 7 Session 2 Lesson Plan Prompt Engineering
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.
---
**Date**: [Insert specific date, e.g., October 16, 2025, assuming a Tuesday/Thursday schedule]
**Duration**: 90 minutes
**Target Audience**: College students (beginner to intermediate level, mixed technical backgrounds)
---
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.
---
### 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)
---
- Instructor welcomes students, recaps Week 7, Session 1 (prompting for business and education use
cases).
- **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**:
- **Techniques Applied**:
- **Delivery**:
- 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)`
- **Engagement**: Pause at 0:25 to ask, “What data or code task could AI help with?” (Quick responses,
e.g., “Stats,” “Debugging”).
1. **Setup (5 min)**:
- Instructor explains: “Pick a data or coding task, write a prompt using any technique, and test it.”
- Suggested tasks:
- Students:
- **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”).
---
### Assessment
- **Formative**:
---
- **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…”).
---
- 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!