Jump into concepts and practice - no test required
or
Recommended
Test this pattern10 questions across easy, medium, and hard to know if this pattern is strong
Understanding What a Prompt Is
📖 Scenario: Imagine you want to ask a smart assistant or a computer program to help you with a task, like writing a story or answering a question.
🎯 Goal: You will learn what a prompt is and how it works by creating simple examples that show how to give instructions to an AI or computer.
📋 What You'll Learn
Create a simple text variable called prompt with a clear instruction
Add a variable called audience to specify who the instruction is for
Combine prompt and audience into a full message
Add a final statement explaining the purpose of the prompt
💡 Why This Matters
🌍 Real World
Prompts are used every day when people talk to smart assistants or use AI tools to get help with writing, answering questions, or creating art.
💼 Career
Understanding prompts is important for jobs in AI, customer support, content creation, and any role that uses smart technology to assist with tasks.
Progress0 / 4 steps
1
Create a prompt text
Create a variable called prompt and set it to the text "Write a short story about a cat".
AI for Everyone
Hint
A prompt is a simple instruction or question you give to an AI or computer.
2
Add an audience variable
Add a variable called audience and set it to "for children" to show who the prompt is meant for.
AI for Everyone
Hint
Adding an audience helps the AI know how to shape the response.
3
Combine prompt and audience
Create a variable called full_prompt that combines prompt and audience separated by a space.
AI for Everyone
Hint
Joining the prompt and audience creates a clear instruction for the AI.
4
Explain the purpose of the prompt
Add a variable called explanation and set it to "This prompt tells the AI what to write and who it is for.".
AI for Everyone
Hint
The explanation helps understand why prompts are important.
Practice
(1/5)
1. What is a prompt in the context of AI?
easy
A. A programming language
B. A type of AI model
C. A simple instruction or question given to an AI
D. A hardware device for AI
Solution
Step 1: Understand the role of a prompt
A prompt is what you give to an AI to get a response, like a question or instruction.
Step 2: Identify the correct definition
Among the options, only A simple instruction or question given to an AI describes a prompt as a simple instruction or question for AI.
Final Answer:
A simple instruction or question given to an AI -> Option C
Quick Check:
Prompt = simple instruction/question [OK]
Hint: Prompts are what you tell AI to get answers [OK]
Common Mistakes:
Thinking a prompt is a programming language
Confusing prompt with AI model
Assuming prompt is hardware
2. Which of the following is the correct way to write a prompt for an AI?
easy
A. Tell me a joke
B. Run the program
C. Open the file
D. Save the document
Solution
Step 1: Identify which option is a clear instruction or question
Tell me a joke is a clear request to the AI to tell a joke, which is a typical prompt.
Step 2: Check other options
Options A, B, and D are commands for software or computers, not prompts for AI interaction.
Final Answer:
Tell me a joke -> Option A
Quick Check:
Prompt = clear instruction/question [OK]
Hint: Prompts ask AI to do or say something [OK]
Common Mistakes:
Choosing commands for software instead of AI prompts
Confusing prompts with computer commands
3. If you give an AI the prompt "List three fruits", what kind of response should you expect?
medium
A. A programming error message
B. No response
C. A random story
D. A list of three fruits
Solution
Step 1: Understand the prompt meaning
The prompt asks the AI to list three fruits, so the AI should respond with a list of fruits.
Step 2: Evaluate the options
Only A list of three fruits matches the expected response. Other options are unrelated or incorrect.
Final Answer:
A list of three fruits -> Option D
Quick Check:
Prompt asks for list -> AI lists fruits [OK]
Hint: Match prompt request to AI response type [OK]
Common Mistakes:
Expecting error instead of answer
Thinking AI gives unrelated stories
Assuming no response from AI
4. You wrote the prompt "Explain photosynthesis" but the AI gives a very short answer. What is the best way to fix this?
medium
A. Delete the prompt
B. Make the prompt more specific, like "Explain photosynthesis in simple steps"
C. Restart your computer
D. Use a different AI model
Solution
Step 1: Identify the problem with the prompt
The original prompt is too general, so the AI gives a short answer.
Step 2: Choose the best fix
Making the prompt more specific helps the AI give a better, detailed answer. Make the prompt more specific, like "Explain photosynthesis in simple steps" does this.
Final Answer:
Make the prompt more specific, like "Explain photosynthesis in simple steps" -> Option B
Quick Check:
Clearer prompt = better AI answer [OK]
Hint: Be specific in prompts for detailed answers [OK]
Common Mistakes:
Changing AI model unnecessarily
Restarting computer won't help prompt quality
Deleting prompt without improving it
5. You want the AI to create a short story about a cat and a dog. Which prompt will most likely get the best result?
hard
A. "Write a short story about a cat and a dog who become friends."
B. "Cat dog story."
C. "Tell me something."
D. "Explain friendship."
Solution
Step 1: Analyze prompt clarity and detail
"Write a short story about a cat and a dog who become friends." clearly asks for a short story about a cat and dog becoming friends, giving the AI a clear task.
Step 2: Compare other options
Options B, C, and D are vague or unrelated, so they won't produce a good story about a cat and dog.
Final Answer:
"Write a short story about a cat and a dog who become friends." -> Option A
Quick Check:
Clear, detailed prompt = best AI story [OK]
Hint: Use clear, detailed prompts for best AI output [OK]