SectionΒ 6. ChapterΒ 4
ninja.py
Inventory Cleanup
Swipe to show menu
You can access the Ninja's inventory by writing ninja.inventory, and work with it using various methods.
For example, if you want to remove an item from your inventory, you can use the pop(index) method. This deletes the item at the specified index, or the last item if index is omitted.
ninja.py
Task
Swipe to start coding
Solution
Explore other courses in Catalog
Everything was clear?
Thanks for your feedback!
SectionΒ 6. ChapterΒ 4
ninja.py
Ask AI
Ask AI
Ask anything or try one of the suggested questions to begin our chat