Class Initialization Failing
# Class and Instance Variables class Dog: kind = 'canine' def __int__(self, name): self.name = name self.tricks = [] d = Dog('Fido') e = Dog('Buddy') pri
Solution 1:
You have a typo. The method __int__
should be called __init__
.
Post a Comment for "Class Initialization Failing"