Turning Learners Into Developers
Codekilla
CODEKILLA
back to course
Lesson 18 / 9120%
Types of Prompts7/7

Chain-of-thought Prompting

Make the model 'show its work' — huge accuracy boost on reasoning tasks.

// chain-of-thought · think step by stepQ: A bat & ball cost ₹110. Bat is ₹100 more.Step 1: Let ball = x.Step 2: bat = x + 100.Step 3: x + (x+100) = 110 → 2x = 10Answer: ball = ₹5.
Visual explanation diagram · click steps to walk through it

This lesson is Pro only.

Unlock every premium lesson and module — Pro from ₹299 / month (or ₹999 / year, saves ~₹2,589).

Sign in to unlock
// feedback.matters()
Did this lesson help you?