Why the output is None?

Viewed 48

#append and extend

animals=["dog","cat", " elephant"]
def add_animal(snake_type):
    y =  animals.extend(snake_type)
    z=animals.append(snake_type)
    print(y)
    print(z)
add_animal("BOA")
0 Answers
Related