def make_animal(kind): if kind == 'cat': return cat.Cat() if kind == 'dog': return dog.Dog() if kind == 'sheep': return sheep.Sheep() return animal.Animal(kind)
def make_animal(kind): """Create an animal class.""" if kind == 'cat': return cat.Cat() if kind == 'dog': return dog.Dog() if kind = 'lion': return lion.Lion()
def make_animal(kind): """Create an animal class.""" if kind == 'cat': return cat.Cat() if kind == 'dog': return dog.Dog() if kind == 'sheep': return sheep.Sheep() return animal.Animal(kind)
def make_animal(kind): """make animal""" if kind == 'cat': return cat.Cat() if kind == 'dog': return dog.Dog() if kind == 'sheep': return sheep.Sheep() if kind == 'leopard': return leopard.Leopard() return animal.Animal(kind)
def create_animal(kind): """Create an animal class.""" if kind == 'cat': return cat.Cat() if kind == 'dog': return dog.Dog() if kind == 'lion': return lion.Lion() if kind == 'leopard': return leopard.Leopard() if kind == 'sheep': return sheep.Sheep() return animal.Animal(kind)