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

# Practice & Exercises

> Practice object-oriented programming concepts in Python with interactive notebooks

To reinforce what you've learned about classes, objects, instance/class/static methods, encapsulation, inheritance, and method resolution order (MRO), practice with these interactive notebooks:

<CardGroup cols={2}>
  <Card title="Follow-Along Practice" icon="laptop-code">
    Practice defining classes, using `__init__` initializers, creating instance/class/static methods, implementing encapsulation with protected and private variables, exploring name mangling, and implementing inheritance types.

    [💻 VS Code](vscode://file/Users/sivaprasad/Downloads/python%20material/python4ai/public/notebooks/basics_exercises/Classes_Practice.ipynb) | [🚀 Colab](https://colab.research.google.com/github/prasad230776/python4ai/blob/master/public/notebooks/basics_exercises/Classes_Practice.ipynb) | <a href="/public/notebooks/basics_exercises/Classes_Practice.ipynb" download>📥 Download</a>
  </Card>

  <Card title="Practice Exercises" icon="pen-to-square">
    Test your knowledge by writing student blueprints, defining class attributes/methods, handling private fields safely, catching attribute errors, and creating subclasses with inheritance and MRO checks.

    [💻 VS Code](vscode://file/Users/sivaprasad/Downloads/python%20material/python4ai/public/notebooks/basics_exercises/Classes_Exercises.ipynb) | [🚀 Colab](https://colab.research.google.com/github/prasad230776/python4ai/blob/master/public/notebooks/basics_exercises/Classes_Exercises.ipynb) | <a href="/public/notebooks/basics_exercises/Classes_Exercises.ipynb" download>📥 Download</a>
  </Card>
</CardGroup>

***

## What's next?

Now that you have completed both functions and classes, let's learn how to handle errors and exceptions in Python.

<Card title="Exception Handling" icon="bug" href="/advanced/exception-handling">
  Learn how to handle runtime errors gracefully
</Card>
