91,000 results
Open links in new tab
  1. __init__ in Python - GeeksforGeeks

    May 11, 2026 · Your All-in-One Learning Portal: GeeksforGeeks is a comprehensive educational platform that empowers learners …Read more

  2. Python __init__ () Method - W3Schools

    All classes have a built-in method called __init__(), which is always executed when the class is being initiated.

  3. Understand __init__ Method in Python

    Oct 7, 2025 · Learn how to use Python's __init__ method for object initialization. This guide covers basic usage, inheritance, …Read more

  4. oop - What do __init__ and self do in Python? - Stack Overflow

    Jul 8, 2017 · But remember the first argument in a method definition is a reference to the object. Python adds the self argument to …Read more

  5. Python __init__ () Function - W3Schools

    Python __init__ () Method The __init__ () Method The examples above are classes and objects in their simplest form, and are not …Read more

  6. What is __Init__.Py File in Python? - GeeksforGeeks

    Jul 23, 2025 · The __init__.py file is a Python file that is executed when a package is imported. __init__.py is a special file used in …Read more

  7. Python init: What It Does - PyTutorial

    2 days ago · Learn how init works in Python classes, why it runs on object creation, and how to use it correctly with clear code …Read more

  8. Class Constructor Python: How __init__() Works - AskPython

    Nov 17, 2026 · A Python class needs a way to give each new object its starting values. The __init__ method receives arguments …Read more

  9. 9. Classes — Python 3.15.2 documentation

    1 day ago · 9.2. Python Scopes and Namespaces ¶ Before introducing classes, I first have to tell you something about Python’s …Read more

  10. __init__ in Python - Online Tutorials Library

    Mar 27, 2026 · The __init__ method is Python's constructor that automatically initializes objects when they are created. This special …Read more