Web Reference: Sep 12, 2025 · It runs automatically when a new object of a class is created. Its main purpose is to initialize the object’s attributes and set up its initial state. When an object is created, memory is allocated for it, and __init__ helps organize that memory by assigning values to attributes. Let’s look at some examples. The __init__() method is used to assign values to object properties, or to perform operations that are necessary when the object is being created. Create a class named Person, use the __init__() method to assign values for name and age: Note: The __init__() method is called automatically every time the class is being used to create a new object. Jul 8, 2017 · Technically the responsibilities of a "constructor" are split over two methods in Python. Those methods are __new__ (responsible for allocating memory) and __init__ (as discussed here, responsible for initialising the newly created instance).
YouTube Excerpt: __init__
Information Profile Overview
What Is Init In Python - Latest Information & Updates 2026 Information & Biography

Details: $30M - $74M
Salary & Income Sources

Career Highlights & Achievements

Assets, Properties & Investments
This section covers known assets, real estate holdings, luxury vehicles, and investment portfolios. Data is compiled from public records, financial disclosures, and verified media reports.
Last Updated: April 5, 2026
Information Outlook & Future Earnings

Disclaimer: Disclaimer: Information provided here is based on publicly available data, media reports, and online sources. Actual details may vary.






![What exactly is 'self' in Python? [Easy explanation] Net Worth](https://i.ytimg.com/vi/JH4q65dZPvY/mqdefault.jpg)

