LearnAI
Module 7 · Advanced prompting (Pro) · Lesson 1/4
← Back to catalog
Task

Reasoning in steps (chain-of-thought)

Write a prompt so that the model solves IN STEPS and returns JSON {"steps": [lines], "answer": "..."}. JSON only.

Unlock access to submit solutions for instant AI review.Start for free
Accuracy on complex tasks
💡 A bit of theory

When you ask a model to “think step by step,” it is less likely to make mistakes in calculations and logic. Make her write out the steps instead of giving the answer right away.

How it's graded · passing score 70

  • 1Valid JSON without text around it25%
  • 2There are fields steps and answer20%
  • 3The answer is correct35%
  • 4Steps show calculation20%
Your promptClaude ⌄