BaşlayınÜcretsiz Başlayın

Try your first Claude prompt!

To preview what's ahead, the Python code for sending a request to the Anthropic API is ready for you.

Pass any question or instruction to the prompt argument and see how Claude responds!

Here are a couple of prompts to try if you're struggling for ideas:

  • What capabilities make Claude well-suited for enterprise applications?
  • Give me two examples of how I could use Claude in a Python app.

Bu egzersiz

Introduction to Claude Models

kursunun bir parçasıdır
Kursu Görüntüle

Egzersiz talimatları

  • Enter your prompt replacing "INSERT YOUR PROMPT HERE", experiment, and submit your answer when ready!

Uygulamalı interaktif egzersiz

Bu örnek kodu tamamlayarak bu egzersizi bitirin.

from anthropic import Anthropic

client = Anthropic(api_key="datacamp-token", base_url=url)

response = client.messages.create(
    model="claude-3-7-sonnet-latest",
    max_tokens=100,
    # Enter your prompt
    messages=[{"role": "user", "content": "INSERT YOUR PROMPT HERE"}]
)

print(response.content[0].text)
Kodu Düzenle ve Çalıştır