Changing Your Mind - Just Curious Question


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?


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

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


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


Thank you. Just trying to simplify tasks.