Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Learn Specific Animal Cleanup | Lists
Python Ninja
Section 6. Chapter 5
ninja.py

ninja.py

bookSpecific Animal Cleanup

Swipe to show menu

Previously, you removed items from the inventory by index, but it is also possible to remove items from the inventory by value.

If you want to remove the dog from the inventory, you can simply write ninja.inventory.remove("dog").

Task

Swipe to start coding

Solution

Explore other courses in Catalog

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

Section 6. Chapter 5
ninja.py

ninja.py

Ask AI

expand

Ask AI

ChatGPT

Ask anything or try one of the suggested questions to begin our chat

some-alt