How do I change the value of tiger?
The first step is to note what index
”tiger” is currently at, and remember that indexes start from
Then we use our list name, brackets, and that index number, followed by an equal sign and the new value you want to be stored in that index.
list_name[index_of_tiger] = “new value!”
Or you can simply change the string where it says
"tiger" and change it with whatever animal you want (in that case I choose
why cant it be ==, so for example zoo_animals == “Bear”
That’s a different operator,
== is a comparison operator used for checking equivalence and returns either
False. For example-
print("red" == "blue")
print(9 == 3*3)
It does not perform any assignment regardless of the boolean value returned.