Nearby lessons

49 of 49

Prompt Engineering - Prompt Examples

The Auto-Driver Way (Layman Example)

Imagine an auto driver in Hyderabad.

  • Say "Take me somewhere" → the driver is confused — which place?
  • Say "Take me to Ameerpet Metro Station" → the driver understands and takes you there.

Same driver, same auto — the only difference is a clear instruction. AI works exactly like this.

In simple words: The better your instruction, the better the machine obeys. That single rule is the whole foundation of prompt engineering.
Example01
Prompt PreviewChatGPT-style
"Take me somewhere"
driver confused
"Take me to Ameerpet Metro Station"
driver understands Same driver, same auto Only difference = clear instruction
Copy the prompt and paste it into ChatGPT, Gemini, or Claude to try it.

How AI Works — Step by Step

When you send a prompt, AI follows a simple four-step process:

  • You type a prompt — for example, "Write a birthday message for my friend".
  • AI reads your instruction — it looks at the words and the task.
  • AI understands the meaning — it finds what you actually want.
  • AI generates the output — it produces the answer in the style you asked.
Trainer's Note: Notice the task was clear (birthday message), so the output was immediately useful. No extra words, no guesswork.
Example02
Prompt PreviewChatGPT-style
You type -> AI reads -> AI understands -> AI generates output Example: "Write a birthday message for my friend"
"Happy Birthday! May your day be filled with joy and great food..."
Copy the prompt and paste it into ChatGPT, Gemini, or Claude to try it.

Bad Prompt vs Good Prompt

A bad prompt is unclear and missing details; a good prompt is clear, specific, and gives proper direction. The quality of your question decides the quality of the answer.

Bad PromptGood PromptWhat makes it good
Tell about jobExplain IT jobs for freshers in simple EnglishTopic + audience + language clear
Write emailWrite a professional email to my manager requesting 2 days leave due to feverPurpose + tone clear
Give interview questionsAct as HR interviewer and ask 5 Python interview questions for fresherRole + count + level clear
In simple words: Bad prompt creates confusion, good prompt creates direction. More clarity and details always improve the answer.
Example03
Prompt PreviewChatGPT-style
BAD: Tell about job
AI gives a general answer (which job? which level?)
GOOD: Explain IT jobs for freshers in simple English
AI gives a focused, useful answer
Copy the prompt and paste it into ChatGPT, Gemini, or Claude to try it.

Rule 1 — Be Specific

A vague prompt like "Explain Java" gives a general answer because the level, audience, and topic are unknown. A specific prompt tells AI exactly what to cover:

  • Topic — what to explain.
  • Level — beginner, intermediate, or advanced.
  • Audience — who it is for.
  • Style — simple, formal, funny, etc.
In simple words: Vague words like "explain this" waste a turn. Always tell AI the topic, the level, the audience, and the style.
Example04
Prompt PreviewChatGPT-style
VAGUE: Explain Java
which level? which part? short or long? -> AI guesses
SPECIFIC: Explain Java basics for freshers in simple English with one example
topic + audience + style clear -> strong output
Copy the prompt and paste it into ChatGPT, Gemini, or Claude to try it.

Rule 2 — Be Complete

An incomplete prompt is missing details. "Write resume" gives a generic resume because AI does not know your skills or experience. A complete prompt gives all the information AI needs.

Check yourself: Ask — "If a stranger had to do this task, what would they need to know?" Then put all of that into the prompt.
Example05
Prompt PreviewChatGPT-style
INCOMPLETE: Write resume
no details -> generic output
COMPLETE: Write resume for a Python fresher with no experience. Focus on skills and projects. Use simple professional language
full details -> better result
Copy the prompt and paste it into ChatGPT, Gemini, or Claude to try it.

Prompt Formula in Action

Here is the same idea as a ready-to-use prompt. Notice all five parts appear one by one:

One more example for interview practice:

Example06
Prompt PreviewChatGPT-style
Prompt: Act as a school teacher. (ROLE) Explain Python loops (TASK) for a beginner student (CONTEXT) Use simple Indian English and give one daily life example. (CONSTRAINTS) Format: heading + 2-line explanation + one example. (OUTPUT)
Copy the prompt and paste it into ChatGPT, Gemini, or Claude to try it.

Prompt Formula in Action

Trainer's Note: You do not need to write the words ROLE / TASK / CONTEXT in your prompt. Just include the idea behind each part and AI automatically understands the structure.
Example07
Prompt PreviewChatGPT-style
Act as an interviewer. (ROLE) Ask me 5 Java interview questions (TASK) for a fresher. (CONTEXT) Wait for my answer after each question. (CONSTRAINTS) Give each question as Q1, Q2, ... (OUTPUT)
Copy the prompt and paste it into ChatGPT, Gemini, or Claude to try it.

What is Tone in a Prompt?

Tone is the style or feeling of the response. It controls how AI speaks, not what it speaks.

  • Same question + different tone → different style of output.
  • Like asking for chai in a friendly, polite, strict, or funny way.
In simple words: Tone control decides how AI speaks, not what it speaks. Same topic, different style, depending on what you ask for.
Example08
Prompt PreviewChatGPT-style
"Give tea"
normal
"Please give tea"
polite
"Give tea fast!"
strict
"Boss, give tea quickly, I am sleepy"
funny Same tea. Different tone. AI also responds based on tone.
Copy the prompt and paste it into ChatGPT, Gemini, or Claude to try it.

Tone in Action — Same Question, Four Styles

Trainer's Note: Interviews are the classic strict-tone case: short, direct, no extra chat. Office work needs professional; learning needs friendly; marketing content can use funny.
Example09
Prompt PreviewChatGPT-style
FRIENDLY: Explain SQL in a friendly way for a beginner using simple English PROFESSIONAL: Explain SQL in a professional tone using bullet points FUNNY: Explain SQL in a funny way using a chai shop example STRICT: Explain SQL for an interview. No jokes. Answer in 5 bullet points only
Copy the prompt and paste it into ChatGPT, Gemini, or Claude to try it.

Length Control

Length control means deciding the size of the answer — short, medium, or long. If you do not mention length, AI decides on its own, and the answer can be too long or too short for your need.

In simple words: If you do not specify length, AI chooses the length for you. One line, two words, or an essay — you never know.

Short answers save time and are perfect for revision. Long answers give deep understanding and are perfect for learning a topic properly.

Example10
Prompt PreviewChatGPT-style
SHORT: Explain Python in 2 lines using simple English MEDIUM: Explain Python in 100 words for beginners with one example LONG: Explain Python in detail with examples for college students
Copy the prompt and paste it into ChatGPT, Gemini, or Claude to try it.

Step-by-Step Prompting

Step-by-step prompting asks AI to explain in ordered steps. Instead of one confusing wall of text, AI gives a structured explanation where each step builds on the previous one.

In simple words: Steps control clarity, length controls size. Put both together and you get the best possible explanation.
Example11
Prompt PreviewChatGPT-style
Explain SQL joins step by step. Step 1: What is a join Step 2: Why is it needed Step 3: One example
Copy the prompt and paste it into ChatGPT, Gemini, or Claude to try it.

Combined Control — Length + Steps + Tone

The real power comes from combining all three controls in one prompt:

Without ControlWith Control
Too long or too shortPerfect length
Mixed explanationClear steps
ConfusingEasy to understand
Wastes timeSaves time
Example12
Prompt PreviewChatGPT-style
Explain the for loop in Python step by step. Each step in 2 lines only. (LENGTH) Use simple English. (TONE) Step 1: Syntax Step 2: How it works Step 3: One daily-life example (STEPS)
Copy the prompt and paste it into ChatGPT, Gemini, or Claude to try it.

Practice Builds Confidence

Reading about prompting is like reading a driving book — it does not make you a driver. Real skill comes from doing.

  • Take a bad prompt.
  • Improve it using clarity + formula.
  • Test it with AI.
  • Refine it again — repeat daily.
In simple words: You don't learn AI by watching, you learn AI by doing. Even 5–10 minutes of daily practice makes you confident and powerful.
Example13
Prompt PreviewChatGPT-style
STEP 1: Take a bad prompt "Explain coding" STEP 2: Identify the mistakes no audience, no topic, no style STEP 3: Improve using clarity + formula "Explain coding basics for beginners in simple English with one example" STEP 4: Test with AI STEP 5: Refine again Repeat daily -> skill improves
Copy the prompt and paste it into ChatGPT, Gemini, or Claude to try it.

What is Format Control?

Format control means telling AI how the answer should be presented — not what to answer, but how to show it.

  • The same content can look different in bullet points, a table, steps, a checklist, or a story.
  • Without a defined format, AI gives a messy wall of text.
In simple words: Format control makes AI output clean and useful. It changes the presentation, not the content.

The restaurant example explains it best:

  • "Give food" → confusion.
  • "Give veg meals — rice, dal, curry, neatly in a plate" → a perfect serving.

Same food, different presentation. AI works the same way.

Example14
Prompt PreviewChatGPT-style
Same content -> different formats: BULLETS: Explain Python advantages in 5 bullet points TABLE: Compare Python and Java in a table (Language | Use | Difficulty) STEPS: Explain how to prepare for an interview step by step CHECKLIST: Create an interview preparation checklist for a fresher STORY: Explain the importance of savings using a short story
Copy the prompt and paste it into ChatGPT, Gemini, or Claude to try it.

Structured Output — Fixed Headings & Strict Tables

Structured output means forcing AI to follow the same fixed format every time — same headings, same order, same structure.

  • The output becomes predictable, consistent, and reusable.
  • Like an application form with fixed fields instead of a random paper.
In simple words: Structure turns answers into systems. Fixed headings + strict tables = output you can reuse again and again.

The word "strictly" (or "follow this structure strictly") is the key:

  • Without it → AI may quietly change the headings or add its own sections.
  • With it → the output stays locked to your format.
Example15
Prompt PreviewChatGPT-style
Explain SQL using fixed headings: 1. Definition 2. Why needed 3. Example 4. Interview point Explain Python data types in a table with columns (Data Type | Example | Use). Follow strictly
Copy the prompt and paste it into ChatGPT, Gemini, or Claude to try it.

The "Only Output This" Control

By default AI talks extra — it adds an introduction, greetings, explanations, and a summary you never asked for. The "Only Output This" control tells AI to give only the required output and nothing else.

  • Essential for JSON, apps, APIs, and automation — extra text breaks the data.
  • Think of an ATM: you want cash, not messages. Tool output must be pure data.
  • Essential for JSON, apps, APIs, and automation — extra text breaks the data.
  • Think of an ATM: you want cash, not messages. Tool output must be pure data.
In simple words: Only-output control makes AI tool-ready. No introduction, no explanation, no summary — just the result.

Useful phrases: "Reply only with output", "do not add explanation", "no greetings", "no summary".

Without ControlWith Control
Extra explanationClean output
Not usable in toolsTool-ready
Hard to copyEasy to use
MessyClean
Example16
Prompt PreviewChatGPT-style
Create student details in JSON. Reply only in valid JSON. Do not add any extra text. {"name": "Ravi", "course": "Python", "duration": "6 months"}
Copy the prompt and paste it into ChatGPT, Gemini, or Claude to try it.

The Notes Generator Prompt (Reusable Prompt)

A reusable prompt is one fixed prompt that you use for many different topics. It combines format control + structured output + only-output control into a single system.

  • One prompt in → unlimited structured notes out.
  • Use the exact same prompt for SQL joins, Python lists, operating systems — anything.
  • The output always comes back in the same clean structure.
In simple words: One powerful prompt can generate unlimited structured content. Build it once, use it for every topic.
Example17
Prompt PreviewChatGPT-style
Act as an experienced teacher. (ROLE) Generate clean student notes for the topic: {TOPIC} (TASK) Follow this fixed structure strictly: 1. Definition 2. Key Points 3. Simple Example 4. Interview Tip Rules: - Use simple Indian English - Use bullet points only - Keep points short - Do not add introduction, conclusion, or extra explanation Output only the notes
Copy the prompt and paste it into ChatGPT, Gemini, or Claude to try it.

How AI Reads Your Instructions

An LLM understands only written instructions, not your intention. It reads your prompt from start to finish, like a command list, and processes each instruction in order.

  • If an instruction is missing or confusing, the output changes.
  • AI follows written instructions, not your intention.
In simple words: AI follows written instructions, not your intention. Whatever is missing, AI guesses — whatever is confusing, AI misuses.

This is why instruction order matters: put the role first, then the task, then context, then constraints. A prompt that starts with "Act as a teacher" gives far clearer direction than one that mentions the role at the very end.

Bad Instruction OrderGood Instruction Order
Task firstRole first
Missing clarityClear structure
Confusing outputClean output
Weak controlStrong control
Example18
Prompt PreviewChatGPT-style
"Meeting at 10 AM. Bring laptop." (first message) vs "Meeting at 10 AM. Ignore previous message. Meeting cancelled." (last message) Last instruction dominates. AI also follows the latest and clearest instruction.
Copy the prompt and paste it into ChatGPT, Gemini, or Claude to try it.

Small Words Change Big Output

Prompt engineering is word-level precision. One small word can change the length, tone, or format of the entire output.

  • "Bring vegetables" → anything.
  • "Bring only onions" → restricted.
  • "Bring exactly 1 kg onions" → controlled.
Control WordWhat It DoesExample
onlyRestricts the outputGive only bullet points
exactlyFixes a number or sizeGive exactly 3 bullet points
strictlyEnforces the formatFollow the format strictly
do notStops unwanted outputDo not add explanation
mustMakes it compulsoryThe answer must be in a table
In simple words: Small words control big output in AI. Precision is more important than a long prompt.
Example19
Prompt PreviewChatGPT-style
"Bring vegetables"
anything
"Bring only onions"
restricted
"Bring exactly 1 kg onions"
controlled Same task. Different words -> different output. AI works the same way.
Copy the prompt and paste it into ChatGPT, Gemini, or Claude to try it.

Building Up Precision Word by Word

Trainer's Note: Each small addition made the output more predictable. This is the difference between a casual user and a prompt engineer — the casual user types once; the engineer builds the prompt step by step.
Example20
Prompt PreviewChatGPT-style
STEP 1: Explain benefits of exercise STEP 2: Explain benefits of exercise. Give only bullet points STEP 3: Explain benefits of exercise. Give exactly 3 bullet points STEP 4: Explain benefits of exercise. Give exactly 3 bullet points. Do not add explanation STEP 5: Explain benefits of exercise. Follow the format strictly
Copy the prompt and paste it into ChatGPT, Gemini, or Claude to try it.

Ambiguity — Why AI Guesses

Ambiguity means an unclear or incomplete instruction. When the prompt is not clear, AI fills the missing gaps by guessing based on probability — and the output becomes random. The problem is not the AI; the problem is the unclear instruction.

In simple words: Ambiguity makes AI guess, clarity makes AI accurate. A prompt should be like a requirement document, not a casual chat message.
Ambiguous PromptClear Prompt
Missing detailsFull details
Multiple meaningsSingle meaning
AI guessesAI understands
Random outputStable output

The friend example explains it:

  • Say "Bring it" to a friend → they guess — wrong item, wrong place.
  • The problem is not the friend, it is the unclear instruction.

AI behaves exactly the same way.

Example21
Prompt PreviewChatGPT-style
AMBIGUOUS: Explain cloud
which cloud? for whom? -> AI guesses
CLEAR: Explain cloud computing for non-technical people using simple English with one example
audience + purpose clear -> stable output
Copy the prompt and paste it into ChatGPT, Gemini, or Claude to try it.

Constraints — Rules That Control AI

Constraints are rules that limit AI behavior. Each type controls one thing:

  • Length constraint — controls size.
  • Tone constraint — controls style.
  • Format constraint — controls structure.
  • Plain rules — control what AI may or may not do.

Without constraints, AI has too much freedom and the output becomes inconsistent.

In simple words: Constraints control AI, examples stabilize AI. Together they give you full control over the response.
Without ConstraintsWith Constraints
Random outputControlled output
InconsistentStable
Hard to reuseEasy to reuse
ConfusingClear
Example22
Prompt PreviewChatGPT-style
WITHOUT CONSTRAINTS: Explain Python loops WITH CONSTRAINTS: Explain Python loops in exactly 5 bullet points using simple English. Do not add explanation
Copy the prompt and paste it into ChatGPT, Gemini, or Claude to try it.

Examples — A Reference That Stabilizes Output

An example is a sample output that guides AI's style. When you show AI one good example, it follows the same pattern — this is called giving a reference.

The carpenter story shows it:

  • "Make table" → confusion.
  • "Make a study table, 4 feet, brown colour" → correct.
  • Showing a sample image → perfect.
In simple words: Constraints give rules; examples give a visible reference — use both for maximum control. AI mirrors the pattern you show it.
Example23
Prompt PreviewChatGPT-style
Example: - Loop repeats work - Loop saves time - Loop makes code short Now explain Python loops in the same style.
Copy the prompt and paste it into ChatGPT, Gemini, or Claude to try it.

Zero-Shot Prompting — Direct Asking

Zero-shot prompting means asking AI directly without giving any example — no sample, no format example. AI answers purely from its training. It is the simplest form of prompting.

In simple words: Zero-shot is fast but not controlled. Good for quick tasks, not for structured output.
  • Shop example: say "Give pen" → the shopkeeper gives you any pen — no example, based on guess.
  • AI works the same way in zero-shot mode.
Zero-ShotControlled Prompt
No examplesUses examples
Less controlHigh control
FastStructured
Output variesOutput stable
Trainer's Note: Zero-shot is great for quick answers, idea generation, and first drafts. But if you need a fixed format or a repeatable pattern, do not rely on zero-shot alone.
Example24
Prompt PreviewChatGPT-style
Explain Python What is cloud computing? Write an email for leave
No example given AI answers from its training data Output may vary every time
Copy the prompt and paste it into ChatGPT, Gemini, or Claude to try it.

One-Shot Prompting — Style Locking

One-shot prompting means giving one example to guide AI. The single example shows AI the expected format, tone, and structure, and AI copies that pattern. One example = strong direction.

In simple words: One example can control AI output completely. Guide AI with an example — don't leave it to guess.
  • Tailor example: show one shirt → the tailor stitches the same style — no guessing, same pattern.
  • Useful for emails, notes, and interview questions where you want a consistent look.
Zero-ShotOne-Shot
No exampleOne example
Output variesOutput consistent
Less controlMore control
GuessingGuided output
Example25
Prompt PreviewChatGPT-style
Example: - SQL stores data - SQL uses tables Now explain Python in the same style.
AI follows the bullet style of the example
Copy the prompt and paste it into ChatGPT, Gemini, or Claude to try it.

Few-Shot Prompting — Learning from Examples

Few-shot prompting means giving 2–5 examples to teach AI a pattern. AI learns from the examples and applies the same logic to new input.

  • Few-shot is the teacher who gives three examples — one gives little understanding, three give clear understanding, five give mastery.
  • Works best for classification, MCQ generation, email replies, and any task with a clear pattern.
  • Keep the examples consistent — mixing different patterns confuses AI.
In simple words: Examples teach AI, just like teachers teach students. Few-shot teaches the pattern, not just one answer.
Zero-ShotOne-ShotFew-Shot
No example1 example2–5 examples
High variationMedium controlHigh accuracy
GuessingStyle controlPattern learning
Example26
Prompt PreviewChatGPT-style
Example 1: "I love this phone"
Positive
Example 2: "This service is terrible"
Negative
Example 3: "Food was okay"
Neutral
Now classify: "This movie is amazing"
AI learns the pattern and answers: Positive
Copy the prompt and paste it into ChatGPT, Gemini, or Claude to try it.

Practical Few-Shot Examples

Example 1 — MCQ generator:

Example 2 — email reply:

Example27
Prompt PreviewChatGPT-style
Example 1: Q: Java is? A) OS B) Language C) Browser D) Hardware Answer: B Example 2: Q: Python is used for? A) Cooking B) Programming C) Driving D) Painting Answer: B Now create one MCQ on SQL
Copy the prompt and paste it into ChatGPT, Gemini, or Claude to try it.

Practical Few-Shot Examples

Example28
Prompt PreviewChatGPT-style
Example 1: Customer: Order delayed Reply: Sorry, we are checking Example 2: Customer: Product damaged Reply: Sorry, we will replace Now reply to: Customer wants to cancel the order
Copy the prompt and paste it into ChatGPT, Gemini, or Claude to try it.

Structured Outputs with Few-Shot (Production-Ready)

Few-shot + structure = production-ready AI output. Each piece does one job:

  • Few-shot — teaches the pattern.
  • Structure — locks the format (table, JSON, headings).
  • Strict rules — remove extra text.
In simple words: Few-shot + structure = production-ready AI output. This is where learning becomes a real-world skill.

Notice the two instructions working together: the example taught AI the pattern, and the words "in JSON format only" locked the structure.

  • Bank statement, invoice, resume — extract any of them into JSON with this technique.
Without Few-Shot + StructureWith Few-Shot + Structure
Random formatFixed format
Unstable outputStable output
Hard to reuseEasy to reuse
Not automation-readyAutomation-ready
Example29
Prompt PreviewChatGPT-style
Extract details in JSON format only. Example: Input: "Ravi, Email: ravi@gmail.com, Phone: 9876543210" Output: { "name": "Ravi", "email": "ravi@gmail.com", "phone": "9876543210" } Now extract from: "Anita, Email: anita@yahoo.com, Phone: 9123456789"
{ "name": "Anita", "email": "anita@yahoo.com", "phone": "9123456789" }
Copy the prompt and paste it into ChatGPT, Gemini, or Claude to try it.

Persona Control — Behaviour Engineering

Persona control means controlling how AI behaves — its strictness, its depth of explanation, and its attitude. A persona is not just a role; it is behaviour + depth + attitude.

In simple words: Persona controls behaviour, depth, and attitude of AI. Control the behaviour and you control AI completely.
Persona TypeBehaviourOutput Style
Strict interviewerChallengingShort & direct
MentorSupportiveDetailed & encouraging
AnalystLogicalData-based
HRPoliteSoft & professional

Notice how the same topic would get very different outputs from these two personas — one challenges, the other encourages. That is persona control in action.

Example30
Prompt PreviewChatGPT-style
STRICT INTERVIEWER: You are a strict technical interviewer. Ask 1 question. If the answer is weak, challenge the candidate. Do not give long explanations. MENTOR: You are a supportive career mentor. Explain Python step by step. Encourage learning. Use simple English.
Copy the prompt and paste it into ChatGPT, Gemini, or Claude to try it.

The Stability Layer — Persona + Constraints + Format

A persona alone gives identity, but to make output stable and professional you combine three layers:

  • Persona — behaviour.
  • Constraints — rules.
  • Format — structure.

This combination is what turns a one-time prompt into a reusable AI tool. The school-exam example shows why:

  • "Write about water" → different answers from every student.
  • "Write 5 points, each one line" → the same pattern from everyone.
In simple words: Persona + Constraints + Format = Professional AI output. Structure creates stability, stability creates professionalism.
Example31
Prompt PreviewChatGPT-style
HR INTERVIEW BOT: You are an HR interviewer. (PERSONA) Rules: (CONSTRAINTS) - Ask one question at a time - Wait for my answer - Do not give a long explanation Output format: (FORMAT) Question: Evaluation: Improvement:
Copy the prompt and paste it into ChatGPT, Gemini, or Claude to try it.

Domain Personas — Thinking from a Field

A domain persona makes AI think from a specific field — HR, analyst, mentor, CEO.

  • The same problem gets completely different answers depending on the domain.
  • Each field focuses on different things.

The cricket example: watch the same match as a fan (emotion), a coach (technique), and a selector (talent) — same event, different perspective.

  • Domain persona gives AI the right perspective for the problem.
  • Each domain sees the same problem through its own lens.
Example32
Prompt PreviewChatGPT-style
ACT AS HR MANAGER: Employee performance is low. Give 5 reasons from a people perspective. ACT AS BUSINESS ANALYST: Business is in loss. Give 5 reasons based on data and metrics. ACT AS MENTOR: Employee performance is low. Give a 7-day improvement plan in simple English.
Copy the prompt and paste it into ChatGPT, Gemini, or Claude to try it.

Safety Persona — Safe AI Behaviour

A safety persona makes AI behave safely — politely refusing harmful, illegal, or cheating requests and suggesting safe alternatives.

  • In production systems, safety personas are not optional.
  • They protect users and the system itself.
In simple words: Domain controls thinking, safety controls behaviour. Think like an expert, act responsibly.

Good safety prompts combine three parts:

  • Clear identity — "You are a safe assistant".
  • Clear rule — "refuse harmful requests".
  • Graceful alternative — "suggest a safe alternative".
Example33
Prompt PreviewChatGPT-style
You are a safe AI assistant. If a question involves illegal activity, cheating, or harm, politefully refuse and suggest a safe alternative. If the user asks about drugs or hacking, do not provide any step-by-step guidance.
Copy the prompt and paste it into ChatGPT, Gemini, or Claude to try it.

Simple Reasoning in Action

The step-by-step instruction forces AI to work through the logic instead of guessing. Use this for aptitude problems, discounts, debugging, decisions, and anything with logic.

Example34
Prompt PreviewChatGPT-style
NORMAL: Which is bigger, 0.2 or 0.15?
AI may rush and make a mistake
REASONING: Compare 0.2 and 0.15 step by step. Convert to the same format, then decide, then give the final answer.
AI converts 0.2 to 0.20, compares, and answers confidently: 0.2
Copy the prompt and paste it into ChatGPT, Gemini, or Claude to try it.

Manual Chain of Thought — You Write the Steps

Manual Chain of Thought (Manual CoT) means you write the thinking steps explicitly in the prompt. You guide AI step by step, and AI follows your structure — you control the thinking process.

In simple words: Manual CoT gives you full control over AI thinking. Break the problem into steps and success becomes easy.

The travel example:

  • "Go Hyderabad" → confusion.
  • "Go via ORR, take the exit, go straight, turn left" → zero confusion.

Clear steps in the prompt give AI a clear path.

Normal PromptManual CoT
No stepsStep-by-step
AI guessesAI follows
Less controlFull control
Random outputStructured output
Example35
Prompt PreviewChatGPT-style
Act as a business analyst. (ROLE) Step 1: Calculate revenue for both options Step 2: Compare Step 3: Suggest the best option Data: Option A: fee Rs 5000, 40 students Option B: fee Rs 7000, 30 students
Revenue A = 5000 x 40 = 2,00,000 Revenue B = 7000 x 30 = 2,10,000 Best option: B (higher total revenue)
Copy the prompt and paste it into ChatGPT, Gemini, or Claude to try it.

Auto-CoT — AI Generates the Examples

Auto Chain of Thought (Auto-CoT) lets AI generate the step-by-step examples automatically. Instead of you writing every step, AI creates solved examples first, then you reuse that pattern for new problems.

  • It saves time.
  • It is great for learning.
In simple words: Auto-CoT gives speed, efficiency gives smart results. Work smart, not just hard.
Manual CoTAuto-CoT
You write the stepsAI writes the steps
Full controlFaster
Best for businessBest for practice
More effortLess effort

The driving example:

  • Beginner → thinks through every step (manual).
  • Expert → drives automatically (auto).

Same driving, less effort. Once you understand the pattern, let AI generate examples and apply them to new problems.

Example36
Prompt PreviewChatGPT-style
Act as an aptitude trainer. Generate 3 solved examples step by step on profit and loss. Keep the numbers simple. After each example, give the rule in one line.
Copy the prompt and paste it into ChatGPT, Gemini, or Claude to try it.

Efficiency — Depth vs Speed

Efficiency means getting the best output with the minimum words and time. Not every question needs step-by-step reasoning:

  • Simple questions → quick answers.
  • Complex questions → full reasoning.

Balance depth and speed.

AvoidDo Instead
Long prompts for simple questionsShort prompts, quick answers
Reasoning for everythingReasoning only when needed
Uncontrolled output lengthAlways fix the length
Wasting tokensEfficient, tight prompts
Example37
Prompt PreviewChatGPT-style
EFFICIENT: Solve the profit percentage step by step. Final answer in one line.
steps for logic, one line for speed
Copy the prompt and paste it into ChatGPT, Gemini, or Claude to try it.

Reflection — Review Before You Trust

Reflection means asking AI to review and improve its own answer. The first answer may not be perfect. Reflection adds a checking step:

Generate → Review → Fix → Give the improved final answer.

  • Exam example: you write the answer, check it again, and correct the mistakes — that checking is reflection.
  • AI can do the same when you ask it to.
Example38
Prompt PreviewChatGPT-style
Solve the problem step by step. Then: - Review your answer - Check the calculation and logic - Correct if needed - Give the final answer in 2 lines
Copy the prompt and paste it into ChatGPT, Gemini, or Claude to try it.

Self-Consistency — Ask Three Friends

Self-consistency means solving the same problem multiple times and comparing the answers. If AI gives the same answer every time, you can trust it more.

  • Three-friends analogy: ask three friends and choose the common answer — that is self-consistency.
  • If all three give the same answer, it is probably right.
In simple words: Never trust the first answer blindly. Multiple attempts reduce errors.
Normal OutputReflection + Self-Consistency
One answerMultiple checks
Errors possibleReduced errors
Less reliableMore reliable
No validationValidated output
Example39
Prompt PreviewChatGPT-style
Solve this problem 3 times independently. Compare the answers. Give the most reliable final answer. Problem: CP = 500, Profit = 20%. Find SP.
Try 1: SP = 600 Try 2: SP = 600 Try 3: SP = 600 Final answer: SP = 600
Copy the prompt and paste it into ChatGPT, Gemini, or Claude to try it.

Combined Reflection + Consistency

For important tasks, use both together: solve multiple times, then reflect on the best answer.

Example40
Prompt PreviewChatGPT-style
Solve the problem 3 times independently. Compare the answers. Choose the best one. Then reflect: - Check for mistakes - Improve the final answer - Give the final output
Copy the prompt and paste it into ChatGPT, Gemini, or Claude to try it.

Tree of Thoughts (ToT) — Think Like a Leader

Tree of Thoughts means exploring multiple thinking paths and choosing the best one. Instead of one straight answer, AI creates branches — several options — compares them, and picks the winner. Think like a leader, not just a solver.

In simple words: Think in options, decide with logic. Leaders compare before they decide.

The road example:

  • Three roads are available.
  • A smart person checks all three, compares the traffic, and chooses the best — that is ToT.
  • AI does the same when you ask it to generate and compare options.
Normal ThinkingToT Thinking
One solutionMultiple options
Fast decisionSmart decision
No comparisonProper comparison
Weak reasoningStrong reasoning
Trainer's Note: ToT is perfect for career choices, technology selection, batch timing, and any decision where you want to compare options before choosing.
Example41
Prompt PreviewChatGPT-style
Act as a business planner. Decision problem: Choose the best batch timing. Options: A) Morning B) Evening C) Weekend Step 1: List pros and cons for each Step 2: Compare using the same criteria Step 3: Give a score out of 10 Step 4: Suggest the best option with reasons Step 5: Provide a backup plan
Copy the prompt and paste it into ChatGPT, Gemini, or Claude to try it.

Chain of Hindsight (CoH) — Learn from Mistakes

Chain of Hindsight means learning from past mistakes and improving future answers. AI generates an answer, finds its own mistake, learns from it, and gives a corrected version — mistakes become improvements.

  • Cricket example: a player gets out, reviews the mistake, and improves the next match — that is hindsight.
  • AI can review its own answer the same way.
In simple words: Mistakes are not failures, they are improvements. Learn from the past, think before solving.
Example42
Prompt PreviewChatGPT-style
Solve this problem. Then: - Identify any mistake or weak point - Explain what went wrong - Improve the answer - Give the final corrected output
Copy the prompt and paste it into ChatGPT, Gemini, or Claude to try it.

Step-Back Reasoning — Understand Before Solving

Step-Back reasoning means moving back and understanding the big concept before solving the problem. Instead of jumping straight into the solution, AI first explains the core idea, then solves.

In simple words: Think before you solve. Understanding the concept gives clarity before the calculation.
  • Batting example: before batting, a player studies the pitch and conditions — that is step-back.
  • It stops you from jumping into a solution without understanding what you are solving.
Example43
Prompt PreviewChatGPT-style
Before solving, explain the core concept of profit percentage. Then: - Solve the problem step by step - Give the final answer
Copy the prompt and paste it into ChatGPT, Gemini, or Claude to try it.

Putting It Together

TechniqueOne-Line Purpose
ReflectionAI reviews and improves its own answer
Self-ConsistencySolve multiple times, compare, trust the common answer
Tree of ThoughtsGenerate options, compare, decide
Chain of HindsightLearn from the mistake and improve
Step-BackUnderstand the concept before solving
Example44
Prompt PreviewChatGPT-style
Step 1: Explain the concept (STEP-BACK) Step 2: Solve the problem (REASONING) Step 3: Review the answer (REFLECTION) Step 4: Improve and give the final output (HINDSIGHT)
Copy the prompt and paste it into ChatGPT, Gemini, or Claude to try it.

GoT in Action — Course Launch

Notice how the prompt forces AI to identify components, connect them, and analyze impact — not give a single answer. This is system-level thinking used by senior planners and managers.

Example45
Prompt PreviewChatGPT-style
Act as a business strategist. Goal: Launch a Python course successfully. Step 1: Identify components - Marketing, Pricing, Timing, Risk, Competition Step 2: Explain the connections between components Step 3: If the price increases, analyze the impact Step 4: Suggest the best strategy Output: 1. System explanation 2. Risk analysis 3. Final strategy
Copy the prompt and paste it into ChatGPT, Gemini, or Claude to try it.

Reliability Engineering — Safe & Trusted AI

Reliability engineering means making AI output correct, safe, consistent, and trusted — not random answers, not dangerous outputs, but controlled and verified output. The goal is accuracy + safety + trust.

In simple words: Reliable AI = safe + accurate + verified. Powerful AI needs responsible control.

Two everyday examples:

  • Highway example: a car without barriers can have an accident; with guardrails it is safe — AI needs guardrails too.
  • Bank example: the cashier counts the money twice — that is validation. AI output needs the same validation.
Unsafe AISafe AI
Random answersControlled answers
Harmful suggestionsSafe responses
Fake informationVerified output
No rulesGuardrails present
Example46
Prompt PreviewChatGPT-style
STEP 1: Receive the user input STEP 2: Check the rules (guardrails) STEP 3: If not allowed -> safe response STEP 4: If allowed -> generate the answer STEP 5: Validate the output STEP 6: Return the final answer
Copy the prompt and paste it into ChatGPT, Gemini, or Claude to try it.

Guardrails & Hallucination Control

Guardrails are the allowed / not-allowed rules that limit what AI may answer. A hallucination is when AI creates fake facts with confidence.

  • Guardrails → allowed / not-allowed topics.
  • Hallucination control → stop AI from creating fake facts.
  • Both are controlled with clear prompt rules.
Example47
Prompt PreviewChatGPT-style
GUARDRAIL PROMPT: You are a placement preparation AI. Allowed: - Resume - Interview - Coding Not allowed: - Medical advice - Financial advice If the question is outside the scope, say: "I only help with placement preparation"
Copy the prompt and paste it into ChatGPT, Gemini, or Claude to try it.

Guardrails & Hallucination Control

In simple words: Never let AI guess when it is not sure. "Do not guess" is the rule that stops fake facts.
Example48
Prompt PreviewChatGPT-style
HALLUCINATION CONTROL: If you are not sure about the answer, say "Information not available". Do not guess or create facts.
Copy the prompt and paste it into ChatGPT, Gemini, or Claude to try it.

Complex Case Simulation — Combine Everything

Complex case simulation means applying multiple thinking techniques together. Real problems are too big for a single method:

  • CoT — break the problem.
  • ToT — compare options.
  • Self-Consistency — multiple solutions.
  • Reflection — improve.
In simple words: Real-world success comes from combining multiple thinking methods. Think like a leader, not just a learner.
Simple ThinkingComplex Simulation
One methodMultiple methods
Direct answerStructured plan
Less accuracyHigh accuracy
No validationVerified output
Example49
Prompt PreviewChatGPT-style
Act as an AI Bootcamp Program Manager. Goal: Plan a 3-month AI weekend bootcamp. Constraints: weekend only, 2 hours/day, 12 weeks. Step 1 (CoT): Break into syllabus, schedule, projects, pricing, marketing, risks Step 2 (ToT): Create 3 options (Fast / Balanced / Deep), compare, choose best Step 3 (Self-Consistency): Create 3 versions, select the best Step 4 (Reflection): Check gaps and improve Output: Summary, Weekly schedule, Projects, Pricing, Marketing, Risks, Final conclusion
Copy the prompt and paste it into ChatGPT, Gemini, or Claude to try it.

ReAct — Reason + Act

ReAct means Reason + Act. Thinking alone is not enough — AI should think what is needed, take an action, re-evaluate, and repeat until the goal is complete.

  • AI becomes an assistant that completes tasks, not just an advisor that gives ideas.
  • The loop repeats: think → act → re-evaluate → repeat until done.
In simple words: AI should think and act, not just answer. Ideas are good, execution is powerful.
Normal AIReAct AI
Only answersThinks + acts
Gives ideasCompletes tasks
PassiveActive
LimitedPowerful
Example50
Prompt PreviewChatGPT-style
Think: "I will cook biryani" Act: - Buy rice - Add spices - Cook Thinking + Doing = Result. AI also needs both.
Copy the prompt and paste it into ChatGPT, Gemini, or Claude to try it.

ReAct Prompt — Reason / Act Steps

Notice the pattern: every step alternates between thinking (Reason) and doing (Act). This loop is the foundation of AI agents.

Example51
Prompt PreviewChatGPT-style
You are a workshop planner. Goal: Plan a 1-day workshop. Step 1 (Reason): What info is needed? Step 2 (Act): Ask questions Step 3 (Reason): Decide the structure Step 4 (Act): Create the schedule Step 5 (Reason): Improve the plan Step 6 (Act): Final output Output: - Schedule - Materials - Promo message
Copy the prompt and paste it into ChatGPT, Gemini, or Claude to try it.

Tool Calling — Use Helpers, Don't Guess

Tool calling means AI uses an external helper to get an accurate result. AI should not guess; it should verify.

In simple words: Smart AI uses tools, not guesses. Accuracy builds trust.
SituationTool
Math calculationCalculator
Latest informationSearch
Data lookupDatabase
Checking outputValidator

The student example:

  • Calculator for math.
  • App for train timing.
  • Dictionary for spelling.

Tools reduce mistakes — AI works the same way.

Trainer's Note: Do not use tools for simple answers — that wastes time. Use them when calculation, data, or validation matters.
Example52
Prompt PreviewChatGPT-style
Act as a pricing analyst. Goal: Choose the best pricing option. Step 1: Calculate for each option: - Revenue = price * students - Marketing cost = 500 * students - Total cost = marketing + 60000 - Profit = revenue - cost Step 2: Show results in a table Step 3: Compare profits Step 4: Give the best option with reasons
Copy the prompt and paste it into ChatGPT, Gemini, or Claude to try it.

Stop Conditions — Know When to Stop

A stop condition is a rule that tells AI when to stop. Without one, AI can loop forever — an infinite loop that wastes time and money.

Stop conditions + retry limits + output limits = controlled execution.

In simple words: Smart AI knows when to stop. Control your process, control your results.

The cleaning-room example:

  • Without a rule → you clean forever.
  • With the rule "clean for 30 minutes, stop when the room is clean" → you finish.

AI needs the same kind of boundary.

Without ControlWith Control
Infinite loopSafe stop
High costControlled cost
No limitsClear limits
UnstableStable
Example53
Prompt PreviewChatGPT-style
Goal: Create a marketing plan Rules: - Stop when the plan is ready - Max 3 improvement cycles - Retry a tool max 2 times - Output in 10 bullet points only Process: Repeat: Reason the next step Act (draft / improve) Until the stop condition is reached If the max limit is reached: Return the best available output
Copy the prompt and paste it into ChatGPT, Gemini, or Claude to try it.

The Planning Prompt

A milestone is a big checkpoint — like "content ready" or "batch launched".

  • Milestones let you measure progress.
  • They keep the project on time.
Example54
Prompt PreviewChatGPT-style
Act as a project manager. Goal: Launch a Generative AI batch in 60 days. Step 1: Break into phases Step 2: For each phase define: - tasks - priority (High / Medium / Low) - duration Step 3: Create the timeline Step 4: Add 3 milestones Step 5: Add a risk plan Output: Table + summary roadmap
Copy the prompt and paste it into ChatGPT, Gemini, or Claude to try it.

The Mini Agent Prompt

This single prompt combines CoT, ToT, CoH, Reflection, ReAct, guardrails, and a stop condition — everything you learned so far, working together as one agent.

Example55
Prompt PreviewChatGPT-style
Act as an AI Batch Planning Agent. Goal: Plan a new training batch. Steps: 1. Reason: Identify the inputs needed 2. Act: Ask the inputs 3. CoT: Calculate pricing 4. ToT: Compare timing options 5. Draft: Create a promo message 6. CoH: Improve the message 7. Reflection: Check quality 8. Guardrails: Ensure safe content 9. Stop: Return the final output Output: - Pricing decision - Best timing - Final promo message - Risk summary
Copy the prompt and paste it into ChatGPT, Gemini, or Claude to try it.

The Capstone — A Full Business Workflow

The capstone is the final project that combines all your skills. It turns individual topics into a combined system that solves a real problem.

The school-annual-day example:

  • You practise for many days.
  • Then you perform on the final day — your capstone is that performance.
In simple words: Capstone = from learner to professional. Now you are ready to build real-world AI solutions.
Learning StageCapstone Stage
Individual topicsCombined system
PracticeReal application
Basic thinkingProfessional thinking
Small outputsComplete workflow
Example56
Prompt PreviewChatGPT-style
Act as an AI Business Assistant. Goal: Launch a new AI training batch. Workflow: 1. CoT: Calculate pricing options 2. ToT: Compare batch timing 3. ReAct: Plan the full workflow 4. Tool: Validate the calculations 5. Guardrails: Avoid unsafe advice 6. Reflection: Improve the output 7. Stop: Provide the final result Output: - Pricing decision - Batch timing - Marketing plan - Promo message - Risk analysis - Final summary
Copy the prompt and paste it into ChatGPT, Gemini, or Claude to try it.

Refactoring — Structure Is the Fix

Prompt refactoring means rewriting a messy prompt into a clear structure — same meaning, better clarity.

  • Break the prompt into blocks: role, context, constraints, output format.
  • Remove the noise.
In simple words: Structured prompt gives structured output. Clarity + structure = professional output.

Think of a messy instruction:

  • Messy: "go outside, bring something, also do work, come fast".
  • Clean: 1. go to shop, 2. buy milk, 3. take change, 4. come home.

Same meaning — the structure makes all the difference.

Example57
Prompt PreviewChatGPT-style
MESSY: Explain Python and give examples and give interview questions and roadmap REFACTORED: Act as a Python trainer. (ROLE) Task: Explain Python basics (TASK) Context: For beginners (CONTEXT) Constraints: Simple English (CONSTRAINTS) Output: (FORMAT) 1. 5 key points 2. 1 example 3. 5 interview questions 4. 2 project ideas
Copy the prompt and paste it into ChatGPT, Gemini, or Claude to try it.

The Prompt Testing Checklist

A prompt testing checklist is a set of questions to verify prompt quality before you use it.

  • Like inspecting a bike before buying — check the engine, brakes, and fuel.
  • A prompt must be checked before delivery.
Without TestingWith Testing
Random outputControlled output
ErrorsReduced errors
InconsistentConsistent
RiskyReliable

A good prompt is written, a great prompt is tested. Apply the checklist to every prompt before you use it.

Example58
Prompt PreviewChatGPT-style
PROMPT TESTING CHECKLIST: [ ] Is the role clear? [ ] Is the task specific? [ ] Is the output format defined? [ ] Any ambiguity? [ ] Any missing data? [ ] Can AI misunderstand? [ ] Is the output testable?
Copy the prompt and paste it into ChatGPT, Gemini, or Claude to try it.

The Improvement Loop

The prompt improvement loop is: Ask → Check → Refine → Retest. Your first prompt is never perfect.

  • Every iteration improves the output.
  • The same way you adjust milk and sugar when making tea.
In simple words: Great prompts are built step by step. Improve daily, succeed continuously.
One-Time PromptImprovement Loop
Single tryMultiple iterations
Weak outputStrong output
No correctionContinuous improvement
Beginner approachProfessional approach
Example59
Prompt PreviewChatGPT-style
ITERATION 1: Write a WhatsApp message for a Python course. Problem: too generic ITERATION 2: Act as a marketing writer. Write a WhatsApp message for a Python course. Problem: missing audience ITERATION 3: Act as a marketing writer. Write a WhatsApp message for a Python course for beginners. Problem: no structure ITERATION 4: Act as a marketing writer. Task: write WhatsApp promo. Context: beginners. Constraints: 6 lines only. Output: Hook, Benefit, Topics, Timing, Fee, CTA
Copy the prompt and paste it into ChatGPT, Gemini, or Claude to try it.

Debugging Failed Prompts — The Process

Prompt debugging is finding the mistake and fixing the prompt properly using the process Diagnose → Explain → Rewrite → Test. Broken prompts are the best learning tool — real skill comes from practice.

The mechanic example: the customer says "bike not working"; the mechanic checks, finds the issue, fixes it, and explains the solution. That is exactly how a prompt engineer handles a failing prompt.

Example60
Prompt PreviewChatGPT-style
BROKEN: Make my resume PROBLEM: No role, no details, no format FIXED: Act as an HR recruiter. Task: create a resume. Context: fresher B.Tech CSE student. Constraints: 1 page, bullet points. Output: Summary, Skills, Projects, Education
Copy the prompt and paste it into ChatGPT, Gemini, or Claude to try it.

The Prompt Debugger Meta-Prompt

A meta-prompt is a prompt that works on another prompt. The Prompt Debugger is an AI that analyzes a prompt, finds issues, and rewrites an improved version automatically.

  • With a meta-prompt you are not just using AI — you are building AI tools.
  • Normal prompt: solves the task. Meta-prompt: improves the prompt itself.
In simple words: The meta-prompt turns you from user to builder. The next level is not using AI, it is building AI.
Normal PromptMeta Prompt
Solves the taskImproves the prompt
Direct outputAnalysis + output
Single useReusable tool
Basic levelAdvanced level
Example61
Prompt PreviewChatGPT-style
You are a Prompt Debugger AI. Analyze the following prompt and identify: 1. Missing clarity 2. Ambiguity 3. Structure issues 4. Output format problems Then: - Suggest improvements - Rewrite the improved prompt Output format: 1. Issues found 2. Explanation 3. Improved prompt
Copy the prompt and paste it into ChatGPT, Gemini, or Claude to try it.

Real-World Simulation — Client Case

Real-world simulation means applying all debugging skills to a practical scenario:

  • A client says their chatbot is giving wrong answers.
  • As the prompt engineer, you analyze, identify, refactor, test, and present the solution.
Learning StageReal-World Stage
TheoryApplication
Guided practiceIndependent solving
Small tasksComplex problems
BeginnerProfessional
Example62
Prompt PreviewChatGPT-style
Scenario: Client says the chatbot is giving wrong answers. Task: Act as a Prompt Engineer. Step 1: Analyze the prompt Step 2: Identify the issues Step 3: Apply refactoring + checklist + improvement loop Step 4: Test the output Step 5: Provide the final solution Output: 1. Problem analysis 2. Issues found 3. Improved prompt 4. Explanation
Copy the prompt and paste it into ChatGPT, Gemini, or Claude to try it.

Chaining in Action

Each step has a clear job and a clear output:

  • Step 1 → produces the explanation.
  • Step 2 → uses it to produce a summary.
  • Step 3 → uses the summary to produce a quiz.

Clean and controllable.

Example63
Prompt PreviewChatGPT-style
BIG (single) PROMPT: Explain Python, create a quiz, and generate a PPT CHAINED PROMPTS: Step 1: Explain "{{TOPIC}}" in simple English Step 2: From the explanation, create a summary Step 3: From the summary, create 5 MCQs
Copy the prompt and paste it into ChatGPT, Gemini, or Claude to try it.

Decomposition — Input → Process → Output

Decomposition means breaking a big task into small, clear steps in the correct order. Use the framework Input → Process → Output:

  • Each step receives an input.
  • Does one process.
  • Produces one useful output.
In simple words: Correct breakdown creates correct output. Clarity in steps gives clarity in results.
Wrong DecompositionCorrect Decomposition
Big stepsSmall steps
No outputClear output
Random orderCorrect order
ConfusingStructured

The market example:

  • "Go bring groceries" → confusion.
  • Making a list, checking the budget, buying the items, and verifying → a clear process.

Break the task, define each step's output, and connect the outputs.

Example64
Prompt PreviewChatGPT-style
WORKFLOW: Chapter -> Notes -> Summary -> Quiz STEP 1 PROMPT: Create 10 bullet notes from the given chapter. Use only the input text. STEP 2 PROMPT: Convert the notes into a summary (80 words). Do not add new information. STEP 3 PROMPT: Create 5 MCQs from the summary. Provide the answers.
Copy the prompt and paste it into ChatGPT, Gemini, or Claude to try it.

Format Locking Between Steps

Format locking means keeping the same structure across all steps:

  • If Step 1 gives output as headings and bullets, Step 2 must receive and produce the same structure.
  • Consistency between steps is what keeps a pipeline stable.

Notice each step tells AI exactly what format to produce. That is format locking — it stops the pipeline from drifting into a different structure halfway.

Example65
Prompt PreviewChatGPT-style
WORKFLOW: Resume -> Improve -> Rewrite -> Interview questions STEP 1: Act as a resume reviewer. Improve the resume content. Output: 1) Weak points 2) Improved resume 3) Keywords STEP 2: Rewrite the improved resume in a professional corporate style. Keep the facts the same. Output: Final professional resume STEP 3: Generate 10 interview questions from the final resume. (2 HR + 8 technical)
Copy the prompt and paste it into ChatGPT, Gemini, or Claude to try it.

Branching Pipelines — Decisions Change the Path

A branching pipeline changes its path based on a condition. The logic is simple: IF condition → Route A, ELSE → Route B.

  • Different users get different outputs.
  • AI becomes smart and personalized.
In simple words: Smart workflows adapt based on conditions. Smart decisions create smart systems.
Linear PipelineBranching Pipeline
Single pathMultiple paths
Same output for allCustomized output
SimpleSmart
Less flexibleMore flexible
Example66
Prompt PreviewChatGPT-style
IF marks >= 80 -> Advanced class IF marks < 80 -> Basic revision Decision-based flow. Same input check, different paths.
Copy the prompt and paste it into ChatGPT, Gemini, or Claude to try it.

Branching in Action — Fresher vs Experienced

First, AI classifies the user; then it sends them down the correct path.

  • Marks ≥ 80 → advanced class.
  • Marks < 80 → basic revision.

Define the condition clearly and keep the two flows separate.

Example67
Prompt PreviewChatGPT-style
STEP 1 (DECISION): Act as a resume analyzer. Decide: Fresher or Experienced. Rules: - 0 years -> Fresher - 1+ years -> Experienced Output: Candidate_Type + Reason STEP 2A (FRESHER FLOW): Create 10 basic interview questions (4 HR + 6 basic technical) STEP 2B (EXPERIENCED FLOW): Create 10 advanced interview questions (2 HR + 4 project + 4 scenario)
Copy the prompt and paste it into ChatGPT, Gemini, or Claude to try it.

Controlled Chaining — Stay on Topic

Controlled chaining means maintaining consistency and control across every step — same topic, same format, same rules, no unwanted content.

  • Without it, AI can drift away from the topic.
  • It can add new information you never asked for.
  • Same topic, same format, same rules in every step.
  • Each step uses only the previous output.
In simple words: Control creates consistency. Discipline in process gives perfect output.
Uncontrolled ChainControlled Chain
Topic driftSame topic
Random outputStructured output
New info addedOnly given input
InconsistentStable

The story example:

  • Start a story and suddenly change the topic → confusing.
  • Staying on the same story → the message stays clear.

In every step, use only the previous output and repeat the rule "do not add new information".

Example68
Prompt PreviewChatGPT-style
WORKFLOW: Blog -> SEO -> LinkedIn -> Twitter STEP 1: SEO Extraction Extract SEO summary and keywords. Rules: use only the given blog, do not add new info. Output: Title, Summary, Keywords, Meta description STEP 2: LinkedIn Post Write a LinkedIn post using the summary + keywords. Rules: no new info, 120-160 words, add 3 bullet points STEP 3: Twitter Thread Create 6 tweets from the summary. Rules: max 240 characters, first tweet = hook
Copy the prompt and paste it into ChatGPT, Gemini, or Claude to try it.

Variable Injection — Make Prompts Dynamic

Variable injection means using placeholders in a prompt so the same prompt works for many inputs. Instead of writing a new prompt every time, you build one template with variables like {{TOPIC}}, {{USER_INPUT}}, and {{JOB_ROLE}} — then pass real values.

  • Identify the dynamic parts.
  • Replace them with variables.
  • Reuse the template for any input.
In simple words: Reusable prompts save time and scale work. Work smart by creating reusable systems.
Static PromptDynamic Prompt
Fixed contentFlexible
One-time useReusable
Hard to scaleEasy to scale
Manual workAutomated

The birthday-template example:

  • "Happy Birthday {{NAME}}" — change the name, keep the same template.
  • That is variable injection: identify the dynamic parts, replace them with variables, and reuse the template.
Example69
Prompt PreviewChatGPT-style
STATIC: Explain Python for beginners DYNAMIC: Explain "{{TOPIC}}" for "{{TARGET_AUDIENCE}}" in simple English ADVANCED TEMPLATE: Act as a career mentor. Task: Guide "{{USER_INPUT}}" Context: Target role is {{JOB_ROLE}} Output: 1. Explanation 2. Steps 3. Resources
Copy the prompt and paste it into ChatGPT, Gemini, or Claude to try it.

Reusable Workflow Templates

A reusable workflow template is a pre-built prompt system you can reuse for many tasks. It is built from:

  • Small modules — each step does one job.
  • Variables — {{TOPIC}} style placeholders.
  • Standard structure — the same output shape every time.

Build once, use many times.

In simple words: Build once, use many times. Creators build systems, not just solutions.
One-Time PromptReusable Template
Single useMultiple use
Manual effortAutomated
Hard to scaleEasy to scale
BasicProfessional

The school-template example:

  • Every student writes name, roll number, and subject on the same form — same format → reusable.
  • Your prompt template works the same way — change the topic, keep the system.
Example70
Prompt PreviewChatGPT-style
MASTER TEMPLATE: Topic -> Notes -> Quiz -> PPT You are an AI learning assistant. INPUT: {{TOPIC}} STEP 1: Generate notes (10 points) STEP 2: From the notes, create a summary STEP 3: From the summary, create 5 MCQs STEP 4: From the summary, create a PPT outline OUTPUT: Notes: Summary: Quiz: PPT Outline:
Copy the prompt and paste it into ChatGPT, Gemini, or Claude to try it.

JSON — Structured Data Between Steps

JSON is the format used to pass structured data between workflow steps. Instead of messy text, each step returns a clean JSON object, and the next step reads it.

  • JSON keeps the data organized.
  • Tools and APIs can read it automatically.
Trainer's Note: JSON keeps the data organized — tools and APIs can read it automatically. This is how real AI products connect their steps.
Example71
Prompt PreviewChatGPT-style
Design an AI workflow for a student assistant. Steps: 1. Input: Topic 2. Generate notes 3. Generate summary 4. Generate quiz Output format (JSON): { "notes": "...", "summary": "...", "quiz": "..." }
Copy the prompt and paste it into ChatGPT, Gemini, or Claude to try it.

The Capstone Project

The capstone is the final real-world simulation that uses everything you learned — chaining, pipelines, variables, structure, and automation thinking. It is your journey from learner to system designer.

  • Pick one real problem.
  • Design the workflow, break it into steps, and define inputs and outputs.
  • Apply chaining and variables, then test with multiple inputs.
  • Pick one real problem.
  • Design the workflow, break it into steps, and define inputs and outputs.
  • Apply chaining and variables, then test with multiple inputs.
In simple words: Capstone shows your real skill. Now you are building real-world systems.
Project Option 1 — Resume AssistantProject Option 2 — Study Assistant
Resume → ImproveTopic → Notes
Improve → ATS optimizeNotes → Quiz
ATS → Interview questionsQuiz → PPT
Questions → Mock answersPPT → Social media post
Example72
Prompt PreviewChatGPT-style
You are an AI workflow system. INPUT: {{USER_INPUT}} STEP 1: Generate notes STEP 2: From the notes, generate a quiz STEP 3: From the notes, create a PPT outline STEP 4: From the PPT, create a social media post RULES: - Maintain structure - Do not add unrelated content OUTPUT: Notes: Quiz: PPT: Post:
Copy the prompt and paste it into ChatGPT, Gemini, or Claude to try it.

Optimization — Production-Ready Workflows

Optimization means improving a workflow for better performance — speed, accuracy, cost (tokens), and stability. The first workflow is never perfect:

  • Review it.
  • Remove unnecessary steps.
  • Reduce token usage.
  • Finalize the template.
In simple words: Optimization turns a workflow into a product. Good systems work, great systems scale.
Non-OptimizedOptimized
SlowFast
CostlyEfficient
ComplexSimple
Hard to useEasy to use

The travel example:

  • First time → the long route.
  • Next time → the shorter one.

Same destination, better efficiency. Optimize your workflows the same way.

Example73
Prompt PreviewChatGPT-style
Act as an AI workflow optimizer. Task: Improve the given workflow. Steps: 1. Identify unnecessary steps 2. Suggest improvements 3. Reduce token usage 4. Optimize the structure Output: - Issues - Improvements - Final optimized workflow
Copy the prompt and paste it into ChatGPT, Gemini, or Claude to try it.

Prompt Serialization

Prompt serialization means structuring prompts in an organized format before sending them to AI — instead of one plain sentence, you use structured roles:

  • System — behaviour.
  • User — task.
  • Assistant — response.

Structured prompts give control; plain prompts are simple but weak.

In simple words: Structured prompts give controlled output. Clarity in structure creates power in output.
Plain PromptStructured Prompt
Simple textRole-based
No behaviour controlControlled behaviour
Weak outputStrong output
Less clarityHigh clarity
Example74
Prompt PreviewChatGPT-style
SYSTEM · You are a strict interviewer
Generate 5 Python interview questions
Copy the prompt and paste it into ChatGPT, Gemini, or Claude to try it.

System vs User Messages

The system message controls behaviour (how AI should act); the user message gives the task (what AI should do). System = how, User = what.

  • And remember: the system message has higher priority.
In simple words: System controls behaviour, user controls task. Control behaviour, control output.
System MessageUser Message
BehaviourTask
PersonalityRequest
RulesWork
High priorityLower priority

The school example:

  • A friendly teacher gives a soft explanation.
  • A strict teacher gives a direct one.

Same question, different answers — because the behaviour changed. Change the system message and the whole output changes.

Example75
Prompt PreviewChatGPT-style
STRICT INTERVIEWER: [ {"role": "system", "content": "You are a strict HR interviewer"}, {"role": "user", "content": "Ask Python interview questions"} ] FRIENDLY TEACHER: [ {"role": "system", "content": "You are a friendly teacher"}, {"role": "user", "content": "Explain Python loops"} ]
Copy the prompt and paste it into ChatGPT, Gemini, or Claude to try it.

Alpaca Format — Instruction / Input / Output

The Alpaca template is a structured format used to train AI models, with three clear parts:

  • Instruction — what to do.
  • Input — additional context.
  • Output — expected result.

It makes datasets consistent and improves instruction understanding.

In simple words: Instruction + Input + Output = perfect structure. Structured learning creates powerful systems.

The homework example:

  • Instruction = write about planets.
  • Input = focus on Earth and Mars.
  • Output = 5 points.

Clear structure gives a clear answer — whether for a student or an AI model being fine-tuned.

Example76
Prompt PreviewChatGPT-style
Instruction: Write 5 Python interview questions Input: Candidate is a fresher Output: 1. What is Python? 2. What is a list? 3. What is a dictionary?
Copy the prompt and paste it into ChatGPT, Gemini, or Claude to try it.

ChatML Format — Role-Based Conversations

ChatML is the structured format for conversations in systems like ChatGPT. It uses roles — system, user, assistant — so AI can remember context across multiple turns.

  • Enables real multi-step interaction.
  • Best for chatbots and conversations.
In simple words: ChatML brings conversation into AI. Communication builds intelligence.
Plain PromptChatML
One-time inputMulti-turn
No memoryContext memory
SimpleConversational
LimitedAdvanced
Example77
Prompt PreviewChatGPT-style
SYSTEM · You are a Python mentor
What is a Python list?
A list is a collection of items
Give an example
Copy the prompt and paste it into ChatGPT, Gemini, or Claude to try it.

INST Format — LLaMA Style

The INST format wraps the instruction inside special tags and is used by LLaMA and open-source models. It is a lightweight format with no roles — just the instruction inside [INST] ... [/INST].

The exam-sheet example:

  • A question placed inside a box is easy to identify.
  • The instruction inside tags works the same way — the model knows exactly where the task begins and ends.
Example78
Prompt PreviewChatGPT-style
INST FORMAT: <s>[INST] Explain Python loops [/INST]
Copy the prompt and paste it into ChatGPT, Gemini, or Claude to try it.

Comparing All Four Formats

FormatStructureUse Case
PlainSimple textBasic prompting
AlpacaInstruction / Input / OutputModel training, datasets
ChatMLSystem / User / AssistantChatbots, conversations
INSTInstruction in [INST] tagsLLaMA / open-source models
Trainer's Note: Choose the format based on the model and the use case: ChatML for chat apps, Alpaca for datasets and training, INST for LLaMA models, plain for quick basic tasks.
Example79
Prompt PreviewChatGPT-style
SAME TOPIC IN 4 FORMATS: Explain Python loops PLAIN: Explain Python loops ALPACA: Instruction: Explain Python loops Input: Audience is beginners Output: Python loops repeat code multiple times CHATML: [{"role": "system", "content": "You are a Python teacher"}, {"role": "user", "content": "Explain Python loops"}] INST: <s>[INST] Explain Python loops [/INST]
Copy the prompt and paste it into ChatGPT, Gemini, or Claude to try it.

Prompt Minimalism — Short + Clear

Prompt minimalism means writing short, clear, and precise prompts without losing meaning. It is not just short — it is short + clear + complete.

  • Long prompts are not always better.
  • Extra words create confusion.
In simple words: Short + clear = powerful prompt. Clarity is more powerful than complexity.
Long PromptMinimal Prompt
ClutteredClean
ConfusingClear
Repeated meaningDirect
CostlyEfficient

The shop example:

  • Confusing: "go to the shop near the temple, check the milk, if fresh buy, maybe biscuits also…".
  • Clear: "Buy one fresh milk packet from the nearby shop".

Cut the extras, keep the meaning.

Example80
Prompt PreviewChatGPT-style
LONG: Can you please explain in detail with lots of examples how Python loops work for beginners? MINIMAL: Explain Python loops with simple examples for beginners
Copy the prompt and paste it into ChatGPT, Gemini, or Claude to try it.

Noise Removal — Clean Prompts

Prompt noise is extra words that do not add value to the task. Noise removal means cutting those words while keeping the meaning the same.

  • AI does not need polite fillers like "please kindly".
  • Fillers only add tokens and confusion.
In simple words: Remove noise, improve clarity. Simple prompts create powerful results.
Noisy PromptClean Prompt
LongShort
Polite fillersDirect
ConfusingClear
CostlyEfficient
Trainer's Note: Before every word, ask: "Does this word add value?" If the answer is no, remove it. Keep the prompt direct and focused on the task.
Example81
Prompt PreviewChatGPT-style
NOISY: Please kindly generate for me a list of Python interview questions that might possibly be asked CLEAN: Generate Python interview questions NOISY: Could you please summarize this article for me in simple words? CLEAN: Summarize this article in simple words
Copy the prompt and paste it into ChatGPT, Gemini, or Claude to try it.

Tokens — Cost and Performance

A token is a small piece of text that AI reads — AI processes your prompt token by token, roughly word by word.

  • More tokens → more processing → more cost.
  • Short prompts = low tokens = low cost.
In simple words: Less tokens = more efficiency. Smart engineers optimize, not just create.
Long PromptOptimized Prompt
High tokensLow tokens
ExpensiveCheap
SlowFaster
ClutteredEfficient

The bus-ticket example:

  • Short distance → low cost.
  • Long distance → high cost.

In AI: short prompt = low tokens = low cost. In real projects every API call costs money — minimize tokens without losing meaning.

Example82
Prompt PreviewChatGPT-style
LONG: Can you please explain in detail how Python loops work for beginners with examples? ~ 15 tokens SHORT: Explain Python loops with simple examples for beginners ~ 8 tokens Same meaning, nearly half the tokens.
Copy the prompt and paste it into ChatGPT, Gemini, or Claude to try it.

Consistency — Same Style Every Time

Consistency means getting the same style and format every time.

  • Always control the output format so the result looks identical across runs.
  • Without it, AI gives random, unpredictable output.
Example83
Prompt PreviewChatGPT-style
Always respond in bullet points. Explain Python loops.
every answer comes back in the same bullet style
Copy the prompt and paste it into ChatGPT, Gemini, or Claude to try it.

Safety & Hallucination Control

Safety means reliable and cautious responses. A hallucination is AI giving an incorrect but confident answer.

The directions example:

  • Three people give three different answers.
  • So you ask: "Are you sure? What is your assumption? Can you verify?"

Ask AI the same questions.

In simple words: Never trust AI blindly — verify. Ask for assumptions, sources, and verification.
Without ControlWith Control
Random outputConsistent output
Risky answersSafe answers
Confident mistakesVerified answers
Low trustHigh trust

Key rules for reliability:

  • Control the output format.
  • Ask AI to show its assumptions.
  • Ask for sources when needed.
  • Ask for verification.
  • Allow AI to say "Not sure".
  • Use self-consistency checks.
Example84
Prompt PreviewChatGPT-style
SAFETY + UNCERTAINTY: Explain quantum computing. If uncertain, say "Not sure". ASSUMPTIONS + VERIFICATION: Suggest a laptop for students. List your assumptions before answering. Verify your final answer. SELF-CONSISTENCY: Generate the answer twice and verify consistency.
Copy the prompt and paste it into ChatGPT, Gemini, or Claude to try it.

Multimodal AI — Beyond Text

Multimodal AI understands and creates multiple types of data — text, image, video, and audio.

  • It can look at a photo and answer questions about it.
  • It can turn a text description into an image or a video.

AI is no longer text-only.

In simple words: AI understands and creates across multiple formats. The future belongs to creators who combine creativity with AI.
Old AIMultimodal AI
Only textText + Image + Video + Audio
LimitedPowerful
No visual understandingVisual intelligence
BasicAdvanced
Example85
Prompt PreviewChatGPT-style
IMAGE PROMPT: Create an image of a modern classroom where an AI robot teacher is teaching students VIDEO PROMPT: A drone flying over a green forest, morning sunlight, cinematic view
Copy the prompt and paste it into ChatGPT, Gemini, or Claude to try it.

The Image Prompt Formula

Image prompting means describing a scene in text to generate an image. More details give a better image.

  • Formula: Subject + Environment + Lighting + Camera + Style.
  • Each element adds quality to the final image.
In simple words: Better description = better image. Creativity + clarity = powerful visuals.
Simple PromptDetailed Prompt
Basic imageHigh-quality image
Less controlFull control
Less detailsRich details
Average outputProfessional output

The boy example:

  • "A boy studying" → a flat image.
  • Add the village house, warm evening sunlight, camera angle, and realistic style → a professional-looking scene.
Example86
Prompt PreviewChatGPT-style
SIMPLE: A boy studying DETAILED: A small boy studying in a village house, warm evening sunlight, portrait camera angle, realistic photography
Copy the prompt and paste it into ChatGPT, Gemini, or Claude to try it.

Lighting, Camera & Mood

Cinematic prompting controls the visual feel using lighting + camera + mood:

  • Lighting — controls the atmosphere.
  • Camera — controls the perspective.
  • Mood — controls the emotion.

Small changes create a big impact.

In simple words: Lighting + camera + mood = cinematic output. Details create magic.

The same person photographed in morning sunlight looks happy; in dark shadows they look serious.

  • Same subject, different feeling — that is the power of lighting, camera, and mood.
Example87
Prompt PreviewChatGPT-style
GOLDEN HOUR: A farmer walking through a green field during golden hour, warm sunlight, wide shot, cinematic photography DRAMATIC: A superhero standing on a rooftop at night, dramatic lighting FUTURISTIC: A futuristic Hyderabad city at night, neon lights, drone view, cyberpunk style PEACEFUL: A small village near a river, morning mist, soft lighting, peaceful atmosphere
Copy the prompt and paste it into ChatGPT, Gemini, or Claude to try it.

Video Prompting — Add Motion

Video prompting means describing a moving scene to generate a video. The formula adds action and camera movement to the image formula:

  • Formula: Subject + Action + Camera Movement + Lighting + Style.
  • A photo is a standing person; a video is that person walking.
In simple words: Motion + camera = cinematic video. Think like a filmmaker, not just a user.
Image PromptVideo Prompt
StaticDynamic
No motionMotion
SimpleCinematic
Less detailMore detail
Example88
Prompt PreviewChatGPT-style
IMAGE: A waterfall in a green forest VIDEO: A waterfall flowing through a green forest, camera slowly moving forward, soft morning light, cinematic style
Copy the prompt and paste it into ChatGPT, Gemini, or Claude to try it.

Video Prompting — Add Motion

Example89
Prompt PreviewChatGPT-style
TRAVEL: A drone flying over a tropical island with blue ocean water, camera slowly rising, bright sunlight, cinematic style CITY: A busy city street at night with cars moving, drone camera movement, neon lighting, cyberpunk style STORY: A young entrepreneur working late in an office, typing on a laptop, camera slowly moving closer, cinematic lighting
Copy the prompt and paste it into ChatGPT, Gemini, or Claude to try it.

Negative Prompting — What You DON'T Want

Negative prompting means telling AI what NOT to generate. A normal prompt says what you want; a negative prompt says what you don't want.

  • Essential for image and video generation.
  • AI may add unwanted things like blur, extra fingers, or bad lighting — the negative prompt removes them.
In simple words: Normal prompt = what you want, negative prompt = what you don't want. Like ordering tea: "Tea without sugar" — tea is the prompt, without sugar is the negative prompt.
PromptNegative Prompt
What you wantWhat you don't want
The subjectThe problems to avoid
Describes the dreamRemoves the errors
"Show my project beautifully""Don't show problems or low quality"
Example90
Prompt PreviewChatGPT-style
NORMAL: Generate a photo of a beautiful girl
AI may add blur, extra fingers, bad lighting
WITH NEGATIVE PROMPT: Generate a photo of a beautiful girl Negative prompt: blurry, low quality, extra fingers, distorted face, bad lighting
Much cleaner, better image
Copy the prompt and paste it into ChatGPT, Gemini, or Claude to try it.

The Reusable Negative-Prompt Word List

These words solve the most common AI image problems — reuse them in every image or video prompt:

Example for a realistic image:

Example91
Prompt PreviewChatGPT-style
low quality, blurry, distorted, extra fingers, extra limbs, bad anatomy, deformed face, duplicate, watermark, text, logo, noise, overexposed, underexposed
Copy the prompt and paste it into ChatGPT, Gemini, or Claude to try it.

The Reusable Negative-Prompt Word List

Always use negative prompts for: AI images, videos, realistic faces, and product photography.

Trainer's Note: The real-estate example: prompt = "premium layout, wide roads, green trees, clean plots, bright sunlight, realistic, high quality, aerial view"; negative prompt = "blurry, empty land, dry grass, garbage, broken roads, dark lighting, distorted perspective, watermark, text, logo". Without the negative prompt the land looks empty; with it the image looks premium.
Example92
Prompt PreviewChatGPT-style
Prompt: A cute girl smiling, cinematic lighting Negative prompt: blurry, low quality, extra fingers, bad anatomy, distorted face, watermark
Copy the prompt and paste it into ChatGPT, Gemini, or Claude to try it.

PAL Prompting — Program-Aided Language

PAL means Program-Aided Language prompting. Instead of asking AI to answer directly, you ask AI to write a program and solve the problem. The thinking becomes Language → Code → Answer.

  • Most people ask AI like a guesser.
  • Smart people ask AI like an engineer.
In simple words: If you ask AI to think, it may guess — but if you ask AI to code, it will prove.
Normal AIPAL AI
Thinking in wordsThinking in logic
May guessProves with code
Average resultsProfessional results
Asking a guesserAsking an engineer
Example93
Prompt PreviewChatGPT-style
NORMAL: What is 25 x 48 + 120?
AI may guess
PAL: Write a Python program to calculate 25 x 48 + 120
full logic, no guessing, accurate result
Copy the prompt and paste it into ChatGPT, Gemini, or Claude to try it.

The PAL Formula

The basic formula is extremely simple — "Write a Python program to + [your problem]". For bigger problems, add the details and ask for step-by-step output.

PAL is powerful because the code is accurate, step-by-step, and reusable.

  • Helps: calculations, finance, real estate, data analysis, business planning, automation.
  • Not needed: stories, motivation, marketing content — places where no logic is required.
Example94
Prompt PreviewChatGPT-style
BASIC: Write a Python program to calculate total profit ADVANCED: Write a Python program to solve the following problem: [buying price 30000 per sq yard, selling price 42000, plot size 180 sq yards] Show step-by-step output.
Copy the prompt and paste it into ChatGPT, Gemini, or Claude to try it.

PAL in Action

Real-estate profit:

EMI calculation:

Example95
Prompt PreviewChatGPT-style
Problem: buy price 30000 per sq yard, sell price 42000, size 180 sq yards. Write a Python program to calculate the total profit. buy_price = 30000 sell_price = 42000 size = 180 profit_per_yard = sell_price - buy_price total_profit = profit_per_yard * size print("Profit per yard:", profit_per_yard) print("Total profit:", total_profit)
Profit per yard: 12000 Total profit: 2160000
Copy the prompt and paste it into ChatGPT, Gemini, or Claude to try it.

PAL in Action

Monthly revenue (total + average):

Example96
Prompt PreviewChatGPT-style
Write a Python program to calculate EMI for a loan of 10,00,000 with 10% annual interest for 3 years. P = 1000000 r = 10 / 12 / 100 n = 3 * 12 EMI = (P * r * (1 + r)**n) / ((1 + r)**n - 1) print("Monthly EMI:", EMI)
Copy the prompt and paste it into ChatGPT, Gemini, or Claude to try it.

PAL in Action

Find the topper — works for 1000 students too:

Example97
Prompt PreviewChatGPT-style
Write a Python program to calculate total and average revenue for monthly incomes [100000, 120000, 150000]. revenues = [100000, 120000, 150000] total = sum(revenues) average = total / len(revenues) print("Total Revenue:", total) print("Average Revenue:", average)
Total Revenue: 370000 Average Revenue: 123333.33
Copy the prompt and paste it into ChatGPT, Gemini, or Claude to try it.

PAL in Action

Investment growth:

Example98
Prompt PreviewChatGPT-style
marks = {"Rahul": 85, "Asha": 70, "Arvind": 90} topper = max(marks, key=marks.get) print("Topper is:", topper)
Topper is: Arvind
Copy the prompt and paste it into ChatGPT, Gemini, or Claude to try it.

PAL in Action

Example99
Prompt PreviewChatGPT-style
Write a Python program to calculate compound growth of 2 lakh at 15% for 10 years. principal = 200000 rate = 0.15 years = 10 amount = principal * (1 + rate) ** years print("Final Amount:", amount)
Copy the prompt and paste it into ChatGPT, Gemini, or Claude to try it.
📝 Key Takeaways
  • Every example is a complete, copy-paste prompt
  • Prompts are grouped by chapter
  • Typing prompts is the fastest way to learn