what is wrong with the following :
class Dog()
def ___init ____(self,new___name)
"""Constructor
called when creating an object of this type
name =new____name
print(A new dog is born!")
#this creates the dog
my_dog =Dog("Rover")
1) line 10 has 1 parameter ,yet in line 2 we can see ___init___takes two parameters
2) lines 6 to 7 should not be indented
3) lines 9 and 10 should be indented
4) on line 6, there should be a self,in front of name
Answers
Answered by
0
Answer:
rack out your brain and do it.
Similar questions
Social Sciences,
3 months ago
Science,
3 months ago
English,
3 months ago
Accountancy,
6 months ago
Math,
1 year ago
Math,
1 year ago
Geography,
1 year ago