Computer Science, asked by poonam954019, 5 months ago

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 znapingbou
0

Answer:

rack out your brain and do it.

Similar questions