> ## 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.

# Python basics

> Master the building blocks of Python

## Your Python foundation

Welcome to Python Basics! This is where you'll learn the fundamental building blocks that every Python program uses.

Think of it like learning a new language:

* First, you learn words (variables and data types)
* Then, you learn how to make sentences (operators and expressions)
* Finally, you learn grammar rules (control flow)

## What you'll learn

<CardGroup cols={2}>
  <Card title="Variables" icon="box" href="/basics/variables">
    Store and manage data in your programs
  </Card>

  <Card title="Data types" icon="shapes" href="/data-types">
    Numbers, text, and true/false values
  </Card>

  <Card title="Operators" icon="calculator" href="/basics/operators">
    Math and comparisons in Python
  </Card>

  <Card title="Working with text" icon="font" href="/basics/string-manipulation">
    Manipulate and format strings
  </Card>

  <Card title="Comments" icon="comment" href="/basics/comments">
    Document your code
  </Card>
</CardGroup>

## How to use this section

Each topic builds on the previous one, so I recommend going in order. Every page follows the same format:

1. **What is it?** - Simple explanation of the concept
2. **See it in action** - Live examples you can try
3. **Try it yourself** - Exercises to practice
4. **Common mistakes** - Things to watch out for

<Tip>
  Use Interactive Python mode (Shift + Enter) to try examples as you go. This makes learning much more fun and effective!
</Tip>

## Ready?

Let's start by understanding what programming really is, then dive into Python specifics.

<Card title="What is programming?" icon="rocket" href="/basics/intro-to-programming">
  Understand the basics before diving into Python
</Card>
