r/learnpython • u/ShineRayGan • Jul 10 '22
__init__ method
can some explain how does the __innit__ method works?
P.S: pls try to make the explanation as simple as possible.
15
Upvotes
r/learnpython • u/ShineRayGan • Jul 10 '22
can some explain how does the __innit__ method works?
P.S: pls try to make the explanation as simple as possible.
20
u/Green-Sympathy-4177 Jul 11 '22
__init__is used in Objects toinitializethemSay you have a
Personobject with a firstname and a lastname: