Changing Your Mind - Just Curious Question


#1

Hi, in this lesson we learned to use the del command to remove items. They had us practice by removing two items (Sloth, and Bengal Tiger). In order to do that I wrote out 2 lines using the del command with each line removing one item at a time but it got me thinking if it's possible to remove two items in one line?

EX.


del zoo_animals['Sloth', 'Bengal Tiger']


Would this work? Or is it more complex than that?


#2

That worked for me. So it should work for you.


#3

Thank you. Just trying to simplify tasks.