Section 6. Chapter 5
ninja.py
Specific 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
Everything was clear?
Thanks for your feedback!
Section 6. Chapter 5
ninja.py
Ask AI
Ask AI
Ask anything or try one of the suggested questions to begin our chat