Help on 3/14: New Neighbors


#1

I'm not really sure how to do this... I have this
zoo_animals = ["pangolin", "cassowary", "sloth", "tiger"]
.# Last night our zoo's sloth brutally attacked
.#the poor tiger and ate it whole.

.# 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?
.# Your code here!
zoo_animals[3] + zoo_animals[1]

I'm don't really know what to do.. please help me, thanks in advance if you do!


#2

zoo_animals = ["pangolin", "cassowary", "sloth", "tiger"]

zoo_animals[2] = "hyena"

zoo_animals[3] = "cat"

you should replace the value in index [3] Which is "tiger" with another animal you like, you can do this like what i did in third line.

Good luck ^^


#3

did the same still its showing error
zoo_animals = ["pangolin", "cassowary", "sloth", "tiger"]

Last night our zoo's sloth brutally attacked

the poor tiger and ate it whole.

The ferocious sloth has been replaced by a friendly hyena.

zoo_animals[2]="hena"
zoo_animals[3]="e"

What shall fill the void left by our dear departed tiger?

Your code here!

print zoo_animals


#4

Why do you have a print function? 3/14 doesnt want that and is probably what is messing you up


#5

Thanks all of you :smile: