Skip to content

Lesson 1 of 6

Write a first prompt in Claude chat

Ask Claude to explain a short technical text and read the answer to see how the model responds to a simple request.

5 minClaude, Gemini and ChatGPT

After this lesson, you will be able to write a simple prompt in Claude chat, ask Claude to explain a short technical text, and read the answer to see how the model responds.

Open Claude chat

You need a Claude account. If you do not have one, create it on the Anthropic website. Then open Claude chat in your browser. You will see a text box where you can type a message to Claude.

A prompt is the message you send to Claude. It can be a question, an instruction, or a piece of text. Claude reads the prompt and writes a response.

Choose a short technical text

For this lesson, use a short technical text that you understand well. It can be a paragraph from a programming tutorial, a description of a tool, or a definition of a term. Keep it to about three or four sentences.

For example, you could use this text about a Python library:

Pandas is a Python library for working with data. It provides two main data structures: Series for one-dimensional data and DataFrame for two-dimensional data. You can use Pandas to read data from CSV files, clean it, and analyse it.

You will ask Claude to explain this text. If you prefer, use a different text that is relevant to your work.

Write a simple prompt

In the Claude chat box, type a prompt that asks Claude to explain the text. A simple prompt is direct and does not include extra instructions. For example:

Explain this text: Pandas is a Python library for working with data. It provides two main data structures: Series for one-dimensional data and DataFrame for two-dimensional data. You can use Pandas to read data from CSV files, clean it, and analyse it.

Press Enter to send the prompt. Claude will write a response. The response may be a few sentences or a short paragraph.

Read the answer

Read Claude's answer. It should explain what Pandas is, what Series and DataFrame are, and what you can do with Pandas. The answer may use different words from the original text, but the meaning should be the same.

If the answer is not clear, you can ask a follow-up question. For example, you could type:

What is a DataFrame?

Claude will answer that question based on the conversation so far. This is called a multi-turn conversation: you send a prompt, Claude responds, and you can continue with more prompts.

Try another text

Now try the same prompt with a different text. Copy a short technical paragraph from a website or a document, and ask Claude to explain it. Compare the answers. You will see that Claude adapts its response to the text you give.

How Claude processes a prompt

When you send a prompt, Claude breaks it into small pieces called tokens. A token can be a word, part of a word, or a punctuation mark. Claude reads the tokens one after another and predicts the next token in its response. It does this many times to build the full answer.

This means Claude writes its answer from patterns learned during training. It does not look each fact up as it goes, unless a web search tool is switched on for the conversation. The answer is based on the prompt and the conversation history. That is why the same prompt can give slightly different answers each time.

You can see this by sending the same prompt twice. The meaning will be similar, but the words may change. This is normal and useful when you want different ways to explain something.

Keep the conversation focused

Claude uses the whole conversation as context. If you change the subject, it may get confused. For example, after asking about Pandas, you could ask about a different library, but it is better to start a new conversation for a new topic.

In Claude chat, you can start a new conversation by clicking the new chat button. This clears the history and gives Claude a fresh start. Use a new conversation for each unrelated task.

In the next lesson, you will improve your prompt by telling Claude who it is, what to produce, and how to format the result.

Key takeaways

  • A prompt is the message you send to Claude.
  • A simple prompt asks directly for what you want.
  • Claude's answer explains the text in its own words.
  • You can continue the conversation with follow-up questions.
  • Claude generates responses from patterns, not by searching the internet.

Try it

Find a short technical text about a topic you know, such as a definition of an API or a description of a command-line tool. Ask Claude to explain it with a simple prompt. Then ask one follow-up question about a term in the explanation. Check that the answer is correct and clear. A good result is a response that you could show to a colleague who is new to the topic.

Official documentation

Ready to use this in a job?

Rolebound applies to matching roles for you.

Start now

Written with AI and checked automatically. Tools change, so a command may behave differently in the version you install. Spotted a mistake? Tell us.

    Cookies on Rolebound

    We use necessary cookies to sign you in and keep the site working — those cannot be turned off. We would also like to set analytics and advertising cookies so we can see which pages help people get interviews and which adverts brought them here. Nothing optional is set unless you say yes, and you can change your mind at any time from “Cookie settings” in the footer. Read our Privacy Policy.

    Write a first prompt in Claude chat | Working with Claude: Prompting, Projects and API | Rolebound