> ## Documentation Index
> Fetch the complete documentation index at: https://python4ai.codewithsiva.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# AI assistants

> Use AI tools to learn Python faster

## Learning with AI assistants

AI tools can accelerate your Python learning when used correctly. Here's how to use them effectively.

There are many AI tools available today that can help you learn Python more effectively. Which one you use doesn't really matter - there are free options and paid options. Some are simple chat interfaces where you can ask questions. Others integrate directly into your code editor so you don't need to copy-paste code back and forth.

Pick a tool you already have or are familiar with. Explore paid options if you have the budget. These tools can help speed up your learning, but they're not essential to follow this course.

## Best tools for learning

<CardGroup cols={2}>
  <Card title="ChatGPT" icon="message" href="https://chat.openai.com">
    General coding help and explanations
  </Card>

  <Card title="Claude" icon="brain" href="https://claude.ai">
    Complex problem solving and debugging
  </Card>

  <Card title="GitHub Copilot" icon="github-alt" href="https://github.com/features/copilot">
    Code completion in your editor
  </Card>

  <Card title="Cursor" icon="terminal" href="https://cursor.sh">
    AI-powered code editor
  </Card>
</CardGroup>

## How to ask for help

**Bad prompt:**

```
My code is not working, plz fix
```

**Good prompt:**

```
I'm learning Python and trying to create a list of numbers from 1 to 10.
My code: numbers = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
Is there a more efficient way?
```

## Effective strategies

<Steps>
  <Step title="Ask for explanations">
    "Explain Python functions in simple terms"
  </Step>

  <Step title="Debug with context">
    Share your code and the exact error message
  </Step>

  <Step title="Request alternatives">
    "Show me 3 ways to solve this problem"
  </Step>

  <Step title="Verify understanding">
    Test AI suggestions and ask follow-up questions
  </Step>
</Steps>

<Note>
  AI assistants are tools to enhance learning, not replace it. The goal is understanding, not just working code.
</Note>

## Create your personal Python tutor

Get a customized AI tutor that follows the Learn Python for AI curriculum. Use this system prompt:

```
You are a patient Python tutor specializing in teaching beginners Python for AI development. 

Follow these guidelines:

TEACHING APPROACH:
- Explain concepts simply, as if to someone who has never coded before
- Focus on practical understanding over theoretical knowledge
- Use everyday analogies to explain programming concepts
- Build confidence by celebrating small wins

RESPONSE STRUCTURE:
1. First, acknowledge what the student is trying to do
2. Explain any errors in simple terms
3. Provide a corrected solution with clear comments
4. Explain why this approach works
5. Suggest one next step to build on their learning

CODE STYLE:
- Write clean, simple Python code
- Add comments explaining what each line does
- Use descriptive variable names
- Keep examples under 10 lines when possible

IMPORTANT RULES:
- Never provide solutions without explanations
- If asked to "just fix it," still explain what was wrong and why
- Encourage students to understand errors as learning opportunities
- When students are stuck, guide them with questions rather than immediate answers

Remember: The goal is understanding, not just working code. Every interaction should build the student's confidence and skills.
```

<Tabs>
  <Tab title="ChatGPT">
    **Requirements:** ChatGPT Plus (\$20/month)

    1. Open ChatGPT and click **Explore GPTs**
    2. Click **Create**
    3. In the **Configure** tab, paste the prompt above in the Instructions field
    4. Name it "Python Tutor"
    5. Save visibility as **Only me**

    [View official documentation](https://help.openai.com/en/articles/8554397-creating-a-gpt)
  </Tab>

  <Tab title="Claude">
    **Requirements:** Claude Pro (\$20/month)

    1. Click **Projects** in the sidebar
    2. Click **Create project**
    3. Name it "Python Tutor"
    4. Click **Create project** to start
    5. Paste the prompt in **Set project instructions**

    [View official documentation](https://support.anthropic.com/en/articles/9517075-what-are-projects)
  </Tab>

  <Tab title="Free version">
    **No subscription required**

    1. Open ChatGPT or Claude
    2. Start a new conversation
    3. Paste the entire prompt above
    4. Add your Python question after the prompt
    5. The AI will follow the tutor guidelines

    **Note:** You'll need to paste the prompt at the start of each new conversation
  </Tab>
</Tabs>

## Ready to start coding?

<Card title="Continue to setup" icon="arrow-right" href="/getting-started">
  Set up your Python development environment
</Card>
