---
title: "What is the purpose of __init__ method in Python classes?"  
description: "What is the purpose of __init__ method in Python classes?"  
author: "Harry"  
published: 2024-04-24  
updated: 2024-05-08  
canonical: https://www.mindstick.com/forum/160637/what-is-the-purpose-of-__init__-method-in-python-classes  
category: "python"  
tags: ["python-3.4", "python", "programming language", "python 2"]  
reading_time: 1 minute  

---

# What is the purpose of __init__ method in Python classes?

What is the [purpose](https://yourviews.mindstick.com/view/247/no-fail-policy-failing-its-purpose) of **__init__** [method](https://www.mindstick.com/forum/166/webservice-method) in [Python](https://www.mindstick.com/articles/75378/simple-yet-useful-tips-when-using-python) classes?

## Replies

### Reply by Bhavesh Badani

The __init__ **method** in Python classes is like a **welcome** for objects. When you create an object, __init__ sets up its initial state (like giving it a name tag). It’s where you assign values to the object’s attributes.

In conclusion, it helps to set up an object when it’s created.


---

Original Source: https://www.mindstick.com/forum/160637/what-is-the-purpose-of-__init__-method-in-python-classes

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
