New Neighbours 3/14 Code not working


#1



here's my code:



zoo_animals = ["pangolin", "cassowary", "sloth", "tiger"]
# Last night our zoo's sloth brutally attacked 
#the poor tiger and ate it whole.
zoo_animals = ["pangolin", "cassowary", "sloth"]
# The ferocious sloth has been replaced by a friendly hyena.
zoo_animals[2] = "hyena"

# What shall fill the void left by our dear departed tiger?
zoo_animals[3] = "goat"
zoo_animals = ["pangolin","cassowary","hyena",]


#2

Is there a way we can make our program remove the list item? Writing it manually is not going to be an option.


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.