Dog

Report a typo

Here is a class Dog and some of its methods.

class Dog:
    def __init__(self, name):
        self.name = name

    def bark(self, count):
        return "woof " * count

    def greet(person, self):
        print("wags tail")

    def play():
        print("throw a stick!")

    def sleep(self):
        print("zzz")

Which of the methods are defined correctly and according to conventions?

Select one or more options from the list
___

Create a free account to access the full topic