0

What is the magic method for creating an instance?

What is the magic method for creating an instance?

30th Mar 2018, 1:42 AM
Rachel S
Rachel S - avatar
4 Réponses
+ 1
__init__ note the double underscores before and after it. btw, u can go to the python course on this app to learn more
30th Mar 2018, 3:21 AM
Kaustubh Patil
Kaustubh Patil - avatar
0
__init__
30th Mar 2018, 1:44 AM
Ariela
Ariela - avatar
0
__init__
9th Apr 2020, 8:33 AM
SHYAM P AMBILKAR
SHYAM P AMBILKAR - avatar
0
class Person: def __init__(self, name): self.name = name sayHi(cls): print("Hi")
10th Jun 2020, 1:03 PM
Ira Pendleton
Ira Pendleton - avatar